aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-11 21:18:17 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-11 21:18:17 +0300
commitb6a064bd0ff0ae8e22d4b37607ac6908f883776a (patch)
treeab624a1810cd8c3069332b7f986d5e47c56a18e6 /bin
parentREADME update (diff)
downloadfilters-b6a064bd0ff0ae8e22d4b37607ac6908f883776a.tar.gz
filters-b6a064bd0ff0ae8e22d4b37607ac6908f883776a.zip
revert most of the recent Pylint fixes
I know better how to name my things.
Diffstat (limited to 'bin')
-rw-r--r--bin/shift.py6
-rw-r--r--bin/utils/cmd_line.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/shift.py b/bin/shift.py
index b837c53..94db333 100644
--- a/bin/shift.py
+++ b/bin/shift.py
@@ -25,11 +25,11 @@ def _main_shift(
else:
image.save(output_path, output)
-def _parse_direction(src):
+def _parse_direction(s):
try:
- return Direction(src)
+ return Direction(s)
except ValueError:
- raise argparse.ArgumentTypeError('invalid direction: ' + src)
+ raise argparse.ArgumentTypeError('invalid direction: ' + s)
def _parse_args(args=sys.argv):
parser = argparse.ArgumentParser(
diff --git a/bin/utils/cmd_line.py b/bin/utils/cmd_line.py
index 43f7bca..02c596c 100644
--- a/bin/utils/cmd_line.py
+++ b/bin/utils/cmd_line.py
@@ -5,11 +5,11 @@
import argparse
-def parse_non_negative_integer(src):
+def parse_non_negative_integer(s):
try:
- n = int(src)
+ n = int(s)
except ValueError:
- raise argparse.ArgumentTypeError('must be a non-negative integer: ' + src)
+ raise argparse.ArgumentTypeError('must be a non-negative integer: ' + s)
if n < 0:
- raise argparse.ArgumentTypeError('must be a non-negative integer: ' + src)
+ raise argparse.ArgumentTypeError('must be a non-negative integer: ' + s)
return n