jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/404055 )
Change subject: DeprecationWarning: support for py2.6 and py3.3 will be dropped ......................................................................
DeprecationWarning: support for py2.6 and py3.3 will be dropped
Bug: T154771 Bug: T184508 Change-Id: I548a75ac5e27131c06e2745446123801004d7a14 --- M HISTORY.rst M pywikibot/__init__.py 2 files changed, 9 insertions(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/HISTORY.rst b/HISTORY.rst index c88b72a..e2bbd3c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,7 @@ Current release ---------------
+* Deprecation warning: support for py2.6 and py3.3 will be dropped * Bugfixes and improvements * Localisation updates
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index 8a593fb..508f8ba 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """The initialization file for the Pywikibot framework.""" # -# (C) Pywikibot team, 2008-2017 +# (C) Pywikibot team, 2008-2018 # # Distributed under the terms of the MIT license. # @@ -134,6 +134,13 @@ deprecate_arg = redirect_func(_deprecate_arg)
+if sys.version_info[:2] in ((2, 6), (3, 3)): + warn( + 'Pywikibot will soon drop support for Python 2.6 and 3.3', + DeprecationWarning, + ) + + class Timestamp(datetime.datetime):
"""Class for handling MediaWiki timestamps.
pywikibot-commits@lists.wikimedia.org