Skip to content

Commit

Permalink
Fix false positive E401; issue PyCQA#104.
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Jul 14, 2012
1 parent 4c0e2d0 commit 7f2d5a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
------------------
Expand Down
2 changes: 1 addition & 1 deletion pep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
3 changes: 3 additions & 0 deletions testsuite/E70.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.