Fix PEP8 invalid escape sequences

This commit is contained in:
Labrys of Knossos 2018-12-26 11:31:17 -05:00 committed by Lizband
commit 985f004e32
4 changed files with 14 additions and 14 deletions

View file

@ -123,7 +123,7 @@ def rename_script(dirname):
rename_file = ""
for dir, dirs, files in os.walk(dirname):
for file in files:
if re.search('(rename\S*\.(sh|bat)$)', file, re.IGNORECASE):
if re.search(r'(rename\S*\.(sh|bat)$)', file, re.IGNORECASE):
rename_file = os.path.join(dir, file)
dirname = dir
break