Index: trunk/tools/editor_trends/split_xml_file.py |
— | — | @@ -78,8 +78,8 @@ |
79 | 79 | def build_namespaces_locale(namespaces): |
80 | 80 | ns = [] |
81 | 81 | 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'): |
84 | 84 | ns.append(value) |
85 | 85 | return ns |
86 | 86 | |
— | — | @@ -163,8 +163,8 @@ |
164 | 164 | elem = parse_comments(elem, remove_numeric_character_references) |
165 | 165 | |
166 | 166 | 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 |
169 | 169 | root.clear() # when done parsing a section clear the tree to safe memory |
170 | 170 | |
171 | 171 | #elem = parse_comments(elem, convert_html_entities) |