Permalink
Browse files

Fix false positive E401; issue #104.

  • Loading branch information...
1 parent 4c0e2d0 commit 7f2d5a3f561d48864211642097f05c6a5d2c2a55 @florentx florentx committed Jul 14, 2012
Showing with 6 additions and 1 deletion.
  1. +2 −0 CHANGES.txt
  2. +1 −1 pep8.py
  3. +3 −0 testsuite/E70.py
View
@@ -9,6 +9,8 @@ Changelog
* Fix error on stdin when running with bpython. (Issue #101)
+* Fix false positive E401. (Issue #104)
+
1.3.3 (2012-06-27)
------------------
View
@@ -830,7 +830,7 @@ def imports_on_separate_lines(logical_line):
line = logical_line
if line.startswith('import '):
found = line.find(',')
- if -1 < found:
+ if -1 < found and ';' not in line[:found]:
yield found, "E401 multiple imports on one line"
View
@@ -2,3 +2,6 @@
if a: a = False
#: E702
a = False; b = True
+#: E702
+import bdist_egg; bdist_egg.write_safety_flag(cmd.egg_info, safe)
+#:

0 comments on commit 7f2d5a3

Please sign in to comment.