Dalba added a comment.
@Dvorapa, You should pass Unicode literals to Link, not byte-string. Try u'Historia de Cerdeña' instead of 'Historia de Cerdeña' or from __future__ import unicode_literals in your script.TASK DETAILhttps://phabricator.wikimedia.org/T60574EMAIL
Dvorapa added a comment.
There must be some issue when handling Unicode links in Python 2 somewhere in Link.initTASK DETAILhttps://phabricator.wikimedia.org/T60574EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DvorapaCc: Dvorapa, TerraCodes, Aklapper, XZise,
Dvorapa added a comment.
On Python 2 I get much more simple error:
$ python2 pwb.py shell
>>> pywikibot.Link('Historia de Cerdeña')
Traceback (most recent call last):
File "", line 1, in
File "/home/pavel/pywikibot-test/pywikibot/page.py", line 5476, in __init__
if u"|" in self._text: