File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Version 0.8.0 (unreleased)
4
4
5
+ * This is the last version to support Python 2. Issues a deprecation warning!
5
6
* [ #109 ] ( http://github.com/landscapeio/pylint-django/pull/109 ) ,
6
7
adding 'urlpatterns', 'register', 'app_name' to good names. Obsoletes
7
8
[ #111 ] ( http://github.com/landscapeio/pylint-django/pull/111 ) , fixes
Original file line number Diff line number Diff line change 1
1
"""pylint_django module."""
2
2
from __future__ import absolute_import
3
+
4
+ import sys
5
+ import warnings
6
+
3
7
from pylint_django import plugin
4
8
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
+
5
13
register = plugin .register
You can’t perform that action at this time.
0 commit comments