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.
--
To view, visit
https://gerrit.wikimedia.org/r/404055
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I548a75ac5e27131c06e2745446123801004d7a14
Gerrit-PatchSet: 10
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>