Author: ai0867
Date: Fri Mar 18 00:09:00 2011
New Revision: 48930
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48930&view=rev
Log:
Guard a print statement with the verbose flag, so it won't corrupt json or XML
output.
Modified:
trunk/data/tools/wesnoth/wmlparser2.py
Modified: trunk/data/tools/wesnoth/wmlparser2.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmlparser2.py?rev=48930&r1=48929&r2=48930&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlparser2.py (original)
+++ trunk/data/tools/wesnoth/wmlparser2.py Fri Mar 18 00:09:00 2011
@@ -430,7 +430,8 @@
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):
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits