Commit beba46e
committed
switch namespace name to use none_or()
Namespace.name was being cast to a string which led to problems for namespace 0
(simply missing from XML dumps for most wikis) which was being set to the
string "None" instead of None. Switching from `str(name)` to `none_or(name,
str)` fixes the issue.
This is important on wikis that do not include namespace data for each <page>
and where namespace issue must be inferred from the <title> in each page.
Looking titles that start with "None:" is a dead end.1 parent ddd3ea3 commit beba46e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments