Revision: 4385 Author: btongminh Date: 2007-09-29 14:38:01 +0000 (Sat, 29 Sep 2007)
Log Message: ----------- Fix regex
Modified Paths: -------------- trunk/pywikipedia/maintenance/update_namespaces.py
Modified: trunk/pywikipedia/maintenance/update_namespaces.py =================================================================== --- trunk/pywikipedia/maintenance/update_namespaces.py 2007-09-29 12:24:34 UTC (rev 4384) +++ trunk/pywikipedia/maintenance/update_namespaces.py 2007-09-29 14:38:01 UTC (rev 4385) @@ -11,7 +11,7 @@
r_string = '[u]?[r]?['"].*?['"]' r_list = '\[.*?\]' -r_namespace_def = re.compile(r'['"]([a-z_]*)['"]\s*:\s*((?:%s)|(?:%s))\s*,' % (r_string, r_list)) +r_namespace_def = re.compile(r'['"]([a-z_-]*)['"]\s*:\s*((?:%s)|(?:%s))\s*,' % (r_string, r_list)) def update_family(family, changes): global namespace_section_text, namespace_defs, new_defs
pywikipedia-l@lists.wikimedia.org