Page MenuHomePhabricator

Syntax error in win32_unicode.py
Closed, ResolvedPublic

Description

C:\pwb\core>pwb.py featured -fromall -lang:nl -good -featured

WARNING: Configuration variable 'account_global' is defined but unknown. Misspelled? WARNING: Configuration variable 'use_diskcache' is defined but unknown. Misspelled? WARNING: Configuration variable 'notify_unflagged_bot' is defined but unknown. Misspelled? Traceback (most recent call last): File "C:\pwb\core\pwb.py", line 108, in <module> tryimport_pwb() File "C:\pwb\core\pwb.py", line 30, in tryimport_pwb import pywikibot File "C:\pwb\core\pywikibot\init__.py", line 31, in <module> from pywikibot.bot import * File "C:\pwb\core\pywikibot\bot.py", line 43, in <module> ui = uiModule.UI() File "C:\pwb\core\pywikibot\userinterfaces\terminal_interface_win32.py", line 51, in init__ from .win32_unicode import stdin, stdout, stderr, argv File "C:\pwb\core\pywikibot\userinterfaces\win32_unicode.py", line 45 print(isinstance(message, str) and message or repr(message), file=original_s tderr) ^ SyntaxError: invalid syntax

Bug occured since https://gerrit.wikimedia.org/r/#/c/97876/


Version: core-(2.0)
Severity: major
Platform: PC

Details

Reference
bz57838

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:36 AM
bzimport set Reference to bz57838.

Change 98527 had a related patch set uploaded by Xqt:
(bug 57838) Wrong syntax with new print function for py3 compatibility

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

Change 98527 merged by jenkins-bot:
(bug 57838) Wrong syntax with new print function for py3 compatibility

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