Author: iwontbecreative
Date: Fri Mar 25 20:48:21 2011
New Revision: 49004
URL: http://svn.gna.org/viewcvs/wesnoth?rev=49004&view=rev
Log:
Use 'key in dict' instead of deprecated 'dict.has_key(key)'
Modified:
trunk/utils/wiki_grabber.py
Modified: trunk/utils/wiki_grabber.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/wiki_grabber.py?rev=49004&r1=49003&r2=49004&view=diff
==============================================================================
--- trunk/utils/wiki_grabber.py (original)
+++ trunk/utils/wiki_grabber.py Fri Mar 25 20:48:21 2011
@@ -426,7 +426,7 @@
print "\n\nNo page defined, dropped."
return
- if not file_map.has_key(header[0]):
+ if not header[0] in file_map:
file_map[header[0]] = []
file_map[header[0]].append([header[1], body])
@@ -484,7 +484,7 @@
global macro_map
- if not macro_map.has_key(macro.group(1)):
+ if not macro.group(1) in macro_map:
print "Macro '%s' is not defined." % macro.group(1)
return macro.group(0)
@@ -508,7 +508,7 @@
global macro_map
- if macro_map.has_key(macro.group(1)):
+ if macro.group(1) in macro_map:
print "Macro '%s' is being redefined." % macro.group(1)
macro_map[macro.group(1)] = macro.group(2)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits