Skip to content

Commit 17e3b14

Browse files
committed
Update E402 error message emitted
1 parent 373e0ac commit 17e3b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def is_string_literal(line):
876876
line = logical_line
877877
if line.startswith('import ') or line.startswith('from '):
878878
if checker_state.get('seen_non_imports', False):
879-
yield 0, "E402 import not at top of file"
879+
yield 0, "E402 module level import not at top of file"
880880
elif any(line.startswith(kw) for kw in allowed_try_keywords):
881881
# Allow try, except, else, finally keywords intermixed with imports in
882882
# order to support conditional importing

0 commit comments

Comments
 (0)