diff options
author | d-kiss <speakupness@gmail.com> | 2018-01-28 00:04:10 +0200 |
---|---|---|
committer | d-kiss <speakupness@gmail.com> | 2018-01-28 00:04:10 +0200 |
commit | 2c20e789f0d95f0f9caed6cb7ff0cad36c9e76f0 (patch) | |
tree | 9d78d4c57c078e96d4492668c756e0f33f244231 | |
parent | d99220e7c4b1715dbaba16900b2a569ea20420f4 (diff) | |
download | natsort-2c20e789f0d95f0f9caed6cb7ff0cad36c9e76f0.tar.gz |
Suppressing Codacy.
-rw-r--r-- | test_natsort/test_natsort_cmp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test_natsort/test_natsort_cmp.py b/test_natsort/test_natsort_cmp.py index 3c0964a..2dbf6b5 100644 --- a/test_natsort/test_natsort_cmp.py +++ b/test_natsort/test_natsort_cmp.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# pylint: disable=unused-variable """These test the natcmp() function.""" import sys from functools import partial @@ -13,7 +14,8 @@ PY_VERSION = float(sys.version[:3]) if PY_VERSION >= 3.0: - cmp = lambda a, b: (a > b) - (a < b) + def cmp(a, b): + return (a > b) - (a < b) class Comparable(object): |