Dalba has uploaded a new change for review. ( 
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 pywikibot/__init__.py
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/55/404055/1

diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 8a593fb..9caf168 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -133,6 +133,12 @@
 deprecated = redirect_func(__deprecated)
 deprecate_arg = redirect_func(_deprecate_arg)
 
+if (PY2 and sys.version_info[:2] < (2, 6)) or sys.version_info[:2] < (3, 4):
+    warn(
+        'Pywikibot will soon drop support for Python 2.6 and 3.3',
+        DeprecationWarning,
+    )
+
 
 class Timestamp(datetime.datetime):
 

-- 
To view, visit https://gerrit.wikimedia.org/r/404055
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I548a75ac5e27131c06e2745446123801004d7a14
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to