Author: oracle
Date: Fri Jun 20 17:41:26 2008
New Revision: 27353
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27353&view=rev
Log:
Fixed missing reference to self.verbose and added missing reference to self.
Modified:
trunk/data/tools/wesnoth/wmlparser.py
Modified: trunk/data/tools/wesnoth/wmlparser.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmlparser.py?rev=27353&r1=27352&r2=27353&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlparser.py (original)
+++ trunk/data/tools/wesnoth/wmlparser.py Fri Jun 20 17:41:26 2008
@@ -40,7 +40,7 @@
self.current_path = current_path
self.textdomain = textdomain
- def __init__(self, data_dir, user_dir = None, no_macros_in_string = False):
+ def __init__(self, data_dir, user_dir=None, no_macros_in_string=False):
"""
Initialize a new WMLParser instance.
@@ -494,14 +494,15 @@
keep_macro = self.macro_not_found_callback(self, name, params)
if keep_macro: return keep_macro
sys.stderr.write("No macro %s.\n" % name)
- sys.stderr.write(" (%s:%d)\n" % (self.filename, self.line))
+ if self.verbose:
+ sys.stderr.write(" (%s:%d)\n" % (self.filename, self.line))
return name
return None
def parse_string(self):
text = ""
match_read_end = '"'
- if not no_macros_in_string:
+ if not self.no_macros_in_string:
match_read_end += '{'
while not self.at_end():
text += self.read_until(match_read_end)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits