r75935 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75934‎ | r75935 | r75936 >
Date:16:54, 3 November 2010
Author:diederik
Status:deferred
Tags:
Comment:
XML chunker did not ignore Wikipedia namespace (ns:4), fixed.
Modified paths:
  • /trunk/tools/editor_trends/split_xml_file.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/split_xml_file.py
@@ -78,8 +78,8 @@
7979 def build_namespaces_locale(namespaces):
8080 ns = []
8181 for namespace in namespaces:
82 - value = namespaces[namespace].get(u'canonical', None)
83 - if value != None and not value.endswith('talk'):
 82+ value = namespaces[namespace].get(u'*', None)
 83+ if value != None and value != '' and not value.endswith('talk'):
8484 ns.append(value)
8585 return ns
8686
@@ -163,8 +163,8 @@
164164 elem = parse_comments(elem, remove_numeric_character_references)
165165
166166 if is_article_main_namespace(elem, ns):
167 - fh, counter = write_xml_file(elem, fh, counter, language)
168 -
 167+ #fh, counter = write_xml_file(elem, fh, counter, language)
 168+ pass
169169 root.clear() # when done parsing a section clear the tree to safe memory
170170
171171 #elem = parse_comments(elem, convert_html_entities)

Status & tagging log