jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[cleanup] Show FutureWarning for site.Family and Site.getExpandedString

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

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 change 616113. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If65b05a2ada74b2c643f70b2a5955a83e0c6210b
Gerrit-Change-Number: 616113
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged