aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/utils
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 10:24:42 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 10:24:42 +0300
commit27e36a6dd2546731c37fcc42bb372ad9a552e410 (patch)
tree0e6b1a89932cbcfe9db9b798a2b8949b26d187f7 /bin/utils
parentcode style (diff)
downloadfilters-27e36a6dd2546731c37fcc42bb372ad9a552e410.tar.gz
filters-27e36a6dd2546731c37fcc42bb372ad9a552e410.zip
fix Pylint warnings
Diffstat (limited to 'bin/utils')
-rw-r--r--bin/utils/cmd_line.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/utils/cmd_line.py b/bin/utils/cmd_line.py
index 6bfeafe..43f7bca 100644
--- a/bin/utils/cmd_line.py
+++ b/bin/utils/cmd_line.py
@@ -5,11 +5,11 @@
import argparse
-def parse_non_negative_integer(s):
+def parse_non_negative_integer(src):
try:
- x = int(s)
+ n = int(src)
except ValueError:
- raise argparse.ArgumentTypeError('must be a non-negative integer: ' + s)
- if x < 0:
- raise argparse.ArgumentTypeError('must be a non-negative integer: ' + s)
- return x
+ raise argparse.ArgumentTypeError('must be a non-negative integer: ' + src)
+ if n < 0:
+ raise argparse.ArgumentTypeError('must be a non-negative integer: ' + src)
+ return n