Guard a print statement with the verbose flag,

so it won't corrupt json or XML output.
This commit is contained in:
Alexander van Gessel 2011-03-18 00:09:00 +01:00
parent 1da4dbaa7c
commit c3b5a73ada

View file

@ -430,7 +430,8 @@ class Parser:
self.parse_line_without_commands(rawline)
if self.keep_temp_dir is None and self.temp_dir:
print("removing " + self.temp_dir)
if self.verbose:
print("removing " + self.temp_dir)
shutil.rmtree(self.temp_dir, ignore_errors = True)
def handle_command(self, com):