Page MenuHomePhabricator

pywikibot.__all__ is unicode, causing `TypeError: Item in ``from list'' not a string`
Closed, ResolvedPublic

Description

>>> from pywikibot import *
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: Item in ``from list'' not a string

Event Timeline

valhallasw raised the priority of this task from to Needs Triage.
valhallasw updated the task description. (Show Details)
valhallasw added a project: Pywikibot.
valhallasw subscribed.

When they are converted to str:

>>> from pywikibot import *
WARNING: <string>:1: DeprecationWarning: UserActionRefuse is deprecated; use UserRightsError and/or NotEmailableError

WARNING: <string>:1: DeprecationWarning: pywikibot.QuitKeyboardInterrupt is deprecated; use pywikibot.bot.QuitKeyboardInterrupt instead

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File ".../pywikibot/tools/__init__.py", line 1495, in __getattr__
    return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'TimeStripper'

Change 236358 had a related patch set uploaded (by John Vandenberg):
all items must be str

https://gerrit.wikimedia.org/r/236358

Change 236359 had a related patch set uploaded (by John Vandenberg):
Import textlib.TimeStripper

https://gerrit.wikimedia.org/r/236359

Change 236359 merged by jenkins-bot:
Import textlib.TimeStripper

https://gerrit.wikimedia.org/r/236359

Change 236358 merged by jenkins-bot:
all items must be bytes on Python 2

https://gerrit.wikimedia.org/r/236358

Xqt claimed this task.
Xqt reassigned this task from Xqt to jayvdb.
Xqt set Security to None.

Change 243058 had a related patch set uploaded (by John Vandenberg):
all items must be bytes on Python 2

https://gerrit.wikimedia.org/r/243058

Change 243058 merged by jenkins-bot:
all items must be bytes on Python 2

https://gerrit.wikimedia.org/r/243058

Change 243512 had a related patch set uploaded (by Merlijn van Deen):
Import textlib.TimeStripper

https://gerrit.wikimedia.org/r/243512

Change 243512 merged by jenkins-bot:
Import textlib.TimeStripper

https://gerrit.wikimedia.org/r/243512