We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bed358 commit f252f0aCopy full SHA for f252f0a
CHANGELOG.md
@@ -2,6 +2,7 @@
2
3
## Version 0.8.0 (unreleased)
4
5
+* This is the last version to support Python 2. Issues a deprecation warning!
6
* [#109](http://github.com/landscapeio/pylint-django/pull/109),
7
adding 'urlpatterns', 'register', 'app_name' to good names. Obsoletes
8
[#111](http://github.com/landscapeio/pylint-django/pull/111), fixes
pylint_django/__init__.py
@@ -1,5 +1,13 @@
1
"""pylint_django module."""
from __future__ import absolute_import
+
+import sys
+import warnings
from pylint_django import plugin
9
+if sys.version_info < (3, ):
10
+ warnings.warn("Version 0.8.0 is the last to support Python 2. "
11
+ "Please migrate to Python 3!", DeprecationWarning)
12
13
register = plugin.register
0 commit comments