mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 14:52:17 +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 not cur_block:
|
||||
# ..write new line to prevent messing up terminal
|
||||
sys.stderr.write('\n')
|
||||
print # print line break to clear progress bar
|
||||
break
|
||||
else:
|
||||
# ..if not, write the block and continue
|
||||
@@ -226,7 +226,6 @@ def confirm(question="Rename files?"):
|
||||
while ans not in ["q", "quit"]:
|
||||
print "y/n/a/q?",
|
||||
ans = raw_input()
|
||||
print ans
|
||||
if ans.lower() in ["y", "yes"]:
|
||||
return True
|
||||
elif ans.lower() in ["n", "no"]:
|
||||
|
||||
Reference in New Issue
Block a user