XZise added a comment.

Okay after installing Python 2.7, 2.7.1 and 2.7.3 I determined that only since 
2.7.1 the with-statement is supported for BZ2File. For gzip it works since 2.7 
(so there was never a bug with that). I can't find any bug or so for Python and 
according to https://hg.python.org/cpython/rev/5d5d9074f4ca it was implemented 
together. I'll provide a patch which still wraps BZ2File in our context manager 
in Python 2.7.0.


TASK DETAIL
  https://phabricator.wikimedia.org/T101649

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: XZise
Cc: pywikipedia-bugs, Aklapper, jayvdb



_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to