mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 23:02:16 +00:00
Fix progress bar being overwritten with next print statement, remove debug printing of confirmation answer
This commit is contained in:
@@ -132,7 +132,7 @@ def copy_with_prog(src_file, dest_file, overwrite = False, block_size = 512):
|
|||||||
# If it's the end of file
|
# If it's the end of file
|
||||||
if not cur_block:
|
if not cur_block:
|
||||||
# ..write new line to prevent messing up terminal
|
# ..write new line to prevent messing up terminal
|
||||||
sys.stderr.write('\n')
|
print # print line break to clear progress bar
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
# ..if not, write the block and continue
|
# ..if not, write the block and continue
|
||||||
@@ -226,7 +226,6 @@ def confirm(question="Rename files?"):
|
|||||||
while ans not in ["q", "quit"]:
|
while ans not in ["q", "quit"]:
|
||||||
print "y/n/a/q?",
|
print "y/n/a/q?",
|
||||||
ans = raw_input()
|
ans = raw_input()
|
||||||
print ans
|
|
||||||
if ans.lower() in ["y", "yes"]:
|
if ans.lower() in ["y", "yes"]:
|
||||||
return True
|
return True
|
||||||
elif ans.lower() in ["n", "no"]:
|
elif ans.lower() in ["n", "no"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user