jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/647622 )
Change subject: [cleanup] remove deprecated Family.server_time ......................................................................
[cleanup] remove deprecated Family.server_time
Bug: T89451 Change-Id: Idfa5e69eaf9cf831ae7788dd959dc107a98060de --- M pywikibot/family.py 1 file changed, 0 insertions(+), 9 deletions(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py index c90d622..7d79448 100644 --- a/pywikibot/family.py +++ b/pywikibot/family.py @@ -1075,15 +1075,6 @@ return repo.code, repo.family.name return (None, None)
- @deprecated('Site.server_time()', since='20141225', future_warning=True) - def server_time(self, code): - """ - DEPRECATED, use Site.server_time instead. - - Return a datetime object representing server time. - """ - return pywikibot.Site(code, self).server_time() - def isPublic(self, code): """Check the wiki require logging in before viewing it.""" return True
pywikibot-commits@lists.wikimedia.org