Closed jayvdb closed 9 years ago
Python 3.5 has been released?
No final release yet, but alphas (https://www.python.org/downloads/release/python-350a4/) and travis allows testing against nightly builds.
Ah, alright. 0.4 doesn't claim to support it (check setup.py
) but I'll add that for the 0.4.1.
fwiw, this syntax added by @legoktm in cb875ae347f0b746d99159fa7edb235006145fbd
I cant see any PEP explaining why this syntax is now invalid in py3.5, but I can see why they might have killed it. It is ambiguous. Does the \ apply before or after the if.
The simplest fix is to use codecs.open instead of open, as codecs.open supports encoding in Python 2.
https://travis-ci.org/jayvdb/pywikibot-core/jobs/63826402#L361