Author: esr
Date: Thu Apr 12 18:38:43 2007
New Revision: 16786
URL: http://svn.gna.org/viewcvs/wesnoth?rev=16786&view=rev
Log:
Fix two minor bugs turned up by running macroscope on UMC.
Modified:
trunk/data/tools/macroscope
Modified: trunk/data/tools/macroscope
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/macroscope?rev=16786&r1=16785&r2=16786&view=diff
==============================================================================
--- trunk/data/tools/macroscope (original)
+++ trunk/data/tools/macroscope Thu Apr 12 18:38:43 2007
@@ -89,7 +89,7 @@
return None
def mark_matching_resources(self, pattern, fn, n):
"Mark all definitions matching a specified pattern with a reference."
- pattern = re.compile(pattern + "$")
+ pattern = re.compile(re.escape(pattern) + "$")
key = None
for trial in self.fileref:
if pattern.match(trial):
@@ -129,7 +129,7 @@
here = reference(filename, n+1)
if name in self.xref:
print >>sys.stderr, "*** Warning: duplicate
definition of %s from %s, at %s" \
- % (name, self.xref[name][0], here)
+ % (name, self.xref[name], here)
self.xref[name] = here
dfp.close()
# Next, decorate definitions with all references from the filelist.
_______________________________________________
Wesnoth-commits mailing list
[EMAIL PROTECTED]
https://mail.gna.org/listinfo/wesnoth-commits