https://bugzilla.wikimedia.org/show_bug.cgi?id=73124
John Mark Vandenberg <jayvdb(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|additional space causes |additional space in
|crash |langlinks data causes crash
--- Comment #2 from John Mark Vandenberg <jayvdb(a)gmail.com> ---
API langlinks data retains the space.
https://en.wikipedia.org/w/api.php?action=query&prop=langlinks&titl…
{
"query": {
"pages": {
"40071800": {
"pageid": 40071800,
"ns": 2,
"title": "User:John Vandenberg/test",
"langlinks": [
{
"lang": "fr",
"*": "Cat\u00e9gorie: Pantonyme"
}
]
}
}
}
}
api.py update_page uses pywikibot.Link.langlinkUnsafe to create a Link object,
and that doesnt remove spaces.
>> s = pywikibot.Site()
>> l = pywikibot.Link.langlinkUnsafe('fr', 'Catégorie: Pantonyme',
source=s)
>> l.title
' Pantonyme'
--
You are receiving this mail because:
You are the assignee for the bug.