From: Oleg Broytman Date: Thu, 15 Aug 2019 23:54:23 +0000 (+0300) Subject: Style: Remove extra spaces X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=816aeef09e1ad1ee6db5b51bcb5f0642a8b53235 Style: Remove extra spaces --- 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)