jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/620053 )

Change subject: [cleanup] Show a FutureWarning with tools.open_compressed
......................................................................

[cleanup] Show a FutureWarning with tools.open_compressed

Change-Id: Ibe6c32460f2987b1f338615fbcf59ce2d598bc3a
---
M pywikibot/tools/__init__.py
1 file changed, 6 insertions(+), 6 deletions(-)

Approvals:
  Matěj Suchánek: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py
index ade4522..3db9743 100644
--- a/pywikibot/tools/__init__.py
+++ b/pywikibot/tools/__init__.py
@@ -1728,12 +1728,6 @@
         return getattr(self._module, attr)


-@deprecated('open_archive()', since='20150915')
-def open_compressed(filename, use_extension=False):
-    """DEPRECATED: Open a file and uncompress it if needed."""
-    return open_archive(filename, use_extension=use_extension)
-
-
 def file_mode_checker(filename, mode=0o600, quiet=False, create=False):
     """Check file mode and update it, if needed.

@@ -1802,6 +1796,12 @@
 # deprecated parts ############################################################


+@deprecated('open_archive()', since='20150915', future_warning=True)
+def open_compressed(filename, use_extension=False):
+    """DEPRECATED: Open a file and uncompress it if needed."""
+    return open_archive(filename, use_extension=use_extension)
+
+
 class IteratorNextMixin(Iterator):

     """DEPRECATED. Backwards compatibility for Iterators."""

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/620053
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ibe6c32460f2987b1f338615fbcf59ce2d598bc3a
Gerrit-Change-Number: 620053
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to