Update alerts reported by LGTM

This commit is contained in:
Griatch 2017-09-23 16:46:30 +02:00
parent ce73bf1a93
commit b3c6e9d2cc
10 changed files with 42 additions and 10 deletions

View file

@ -173,7 +173,6 @@ def rename_in_tree(path, in_list, out_list, excl_list, fileend_list, is_interact
if new_root != root:
inp = raw_input(_green("Dir Rename %s\n -> %s\n Y/[N]? > " % (root, new_root)))
if inp.upper() == 'Y':
new_full_path = os.path.join(root, new_file)
try:
os.rename(root, new_root)
except OSError as err: