From 816aeef09e1ad1ee6db5b51bcb5f0642a8b53235 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 16 Aug 2019 02:54:23 +0300 Subject: [PATCH] Style: Remove extra spaces --- .shellrc | 2 +- bin/recode_filenames.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.shellrc b/.shellrc index edb29b8..1920ed7 100644 --- a/.shellrc +++ b/.shellrc @@ -276,7 +276,7 @@ if test -x /usr/bin/git >/dev/null 2>&1; then # list remotes with URLs matching a regexp _list_remotes() { - if [ $# -ne 1 ]; then + if [ $# -ne 1 ]; then echo "Usage: _list_remotes remote_regexp" >&2 return 1 fi diff --git a/bin/recode_filenames.py b/bin/recode_filenames.py index 93b76cb..b9b4672 100755 --- a/bin/recode_filenames.py +++ b/bin/recode_filenames.py @@ -1,7 +1,6 @@ #! /usr/bin/env python # -*- coding: koi8-r -*- - import sys src_encoding = sys.argv[1] @@ -64,5 +63,5 @@ if __name__ == "__main__": import os for filename in sys.argv[3:]: new_name = _recode(filename) - if new_name <> filename: + if new_name <> filename: os.rename(filename, new_name) -- 2.39.2