aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/shift.py
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/shift.py
parentcode style (diff)
downloadfilters-27e36a6dd2546731c37fcc42bb372ad9a552e410.tar.gz
filters-27e36a6dd2546731c37fcc42bb372ad9a552e410.zip
fix Pylint warnings
Diffstat (limited to 'bin/shift.py')
-rw-r--r--bin/shift.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/shift.py b/bin/shift.py
index 94db333..b837c53 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(s):
+def _parse_direction(src):
try:
- return Direction(s)
+ return Direction(src)
except ValueError:
- raise argparse.ArgumentTypeError('invalid direction: ' + s)
+ raise argparse.ArgumentTypeError('invalid direction: ' + src)
def _parse_args(args=sys.argv):
parser = argparse.ArgumentParser(