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

Change subject: [cleanup] Show a FutureWarning with deprecated 
api.ParamInfo.modules
......................................................................

[cleanup] Show a FutureWarning with deprecated api.ParamInfo.modules

Change-Id: I7d230cd3cd3346ebfc91eea7101665527cbab867
---
M pywikibot/data/api.py
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index c9f69a7..37e5339 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -657,7 +657,8 @@
         return param_data[0]

     @property
-    @deprecated('submodules() or module_paths', since='20150715')
+    @deprecated('submodules() or module_paths', since='20150715',
+                future_warning=True)
     def modules(self) -> Union[Set[str], FrozenSet[str]]:
         """
         Set of all main and query modules without path prefixes.

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/647666
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: I7d230cd3cd3346ebfc91eea7101665527cbab867
Gerrit-Change-Number: 647666
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[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