jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] config: Inverted PY2 logic ......................................................................
[FIX] config: Inverted PY2 logic
In 97f69a60, `PY2` was redefined in the `config2` module instead of using `tools`' implementation. This adds an error as the logic was actually detecting //non-PY2//. To minimize the redundancy it's now using `tools`' implementation.
Change-Id: Id467fd3d0c176a70d9192639e694fd3b4fd2129a --- M pywikibot/config2.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index b383cc3..c5ad2c1 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -54,9 +54,9 @@
from pywikibot import __url__ from pywikibot.logging import error, output, warning +from pywikibot.tools import PY2
OSWIN32 = (sys.platform == 'win32') -PY2 = (sys.version_info[0] > 2)
if OSWIN32: if not PY2: