>>> import pwb, pywikibot >>> from pywikibot.userinterfaces.cgi_interface import UI >>> ui = UI() >>> ui.input('Hello world') Traceback (most recent call last): File "<pyshell#3>", line 1, in <module> ui.input('Hello world') File "C:\pwb\GIT\core\pywikibot\userinterfaces\cgi_interface.py", line 25, in input self.output(question ' ', newline=False, toStdout=True) File "C:\pwb\GIT\core\pywikibot\userinterfaces\cgi_interface.py", line 21, in output sys.stdout.write(text.encode('UTF-8', 'replace')) TypeError: descriptor 'encode' for 'str' objects doesn't apply to a 'bytes' object >>>
Description
Description
Details
Details
Subject | Repo | Branch | Lines /- | |
---|---|---|---|---|
[bugfix] Remove disfunctional cgi_interface.py | pywikibot/core | master | 1 -28 |
Related Objects
Related Objects
Event Timeline
Comment Actions
Change 483764 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Fix unicode type error within cgi_interface.py
Comment Actions
Change 483764 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Remove disfunctional cgi_interface.py