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

Change subject: [cleanup] Show FutureWarning for site.Family and 
Site.getExpandedString
......................................................................

[cleanup] Show FutureWarning for site.Family and Site.getExpandedString

Change-Id: If65b05a2ada74b2c643f70b2a5955a83e0c6210b
---
M pywikibot/site/__init__.py
1 file changed, 4 insertions(+), 2 deletions(-)

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



diff --git a/pywikibot/site/__init__.py b/pywikibot/site/__init__.py
index ad106bf..588021a 100644
--- a/pywikibot/site/__init__.py
+++ b/pywikibot/site/__init__.py
@@ -122,7 +122,8 @@
 Family = redirect_func(pywikibot.family.Family.load,
                        target_module='pywikibot.family.Family',
                        old_name='Family',
-                       since='20141001')
+                       since='20141001',
+                       future_warning=True)


 class Namespace(Iterable, ComparableMixin):
@@ -2500,7 +2501,8 @@
     getExpandedString = redirect_func(expand_text,
                                       old_name='getExpandedString',
                                       class_name='APISite',
-                                      since='20170504')
+                                      since='20170504',
+                                      future_warning=True)

     def getcurrenttimestamp(self):
         """

-- 
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/616113
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: If65b05a2ada74b2c643f70b2a5955a83e0c6210b
Gerrit-Change-Number: 616113
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