Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: flake8-eyeo/flake8_eyeo.py

Issue 29566555: Noissue - Fix flake8-eyeo for flake8 3.4 (Closed)
Patch Set: Created Oct. 6, 2017, 2:04 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | flake8-eyeo/setup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: flake8-eyeo/flake8_eyeo.py
===================================================================
--- a/flake8-eyeo/flake8_eyeo.py
+++ b/flake8-eyeo/flake8_eyeo.py
@@ -25,7 +25,6 @@
import __builtin__ as builtins
import pkg_resources
-import flake8
try:
ascii
@@ -475,12 +474,7 @@
return []
-# With flake8 3, the way the entry points are register in setup.py,
-# they are recognized as a group, and the name and version is detected
-# automatically. For compatibility with flake8 2, however, we need to
-# assign the name and version to each checker individually.
-if int(flake8.__version__.split('.')[0]) < 3:
- for checker in [ASTChecker, check_non_default_encoding,
- check_quotes, check_redundant_parenthesis]:
- checker.name = 'eyeo'
- checker.version = __version__
+for checker in [ASTChecker, check_non_default_encoding,
+ check_quotes, check_redundant_parenthesis]:
+ checker.name = 'eyeo'
+ checker.version = __version__
« no previous file with comments | « no previous file | flake8-eyeo/setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld