XZise has uploaded a new change for review. https://gerrit.wikimedia.org/r/238329
Change subject: [FIX] open_compressed: Update comment ...................................................................... [FIX] open_compressed: Update comment When `open_compressed` was introduced in ef438c4a it was based on the XML reader and contained a comment about uncompressed XML files. But the new function does work on any content now so reflect that in the comment. Change-Id: Iba602165d7050d9ee89064a1b992a4b93c3acabd --- M pywikibot/tools/__init__.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/29/238329/1 diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py index af11913..aa20041 100644 --- a/pywikibot/tools/__init__.py +++ b/pywikibot/tools/__init__.py @@ -955,8 +955,8 @@ else: return process.stdout else: - # assume it's an uncompressed XML file - return open(filename, 'rb') + # assume it's an uncompressed file + return open(filename, mode) def merge_unique_dicts(*args, **kwargs): -- To view, visit https://gerrit.wikimedia.org/r/238329 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iba602165d7050d9ee89064a1b992a4b93c3acabd Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: XZise <commodorefabia...@gmx.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits