Skip to content

Commit ed36d8b

Browse files
committed
Rename check to signify that it applies to module level imports only; issue #304
1 parent f07ab57 commit ed36d8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pep8.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,8 @@ def imports_on_separate_lines(logical_line):
839839
yield found, "E401 multiple imports on one line"
840840

841841

842-
def imports_on_top_of_file(logical_line, indent_level, checker_state, noqa):
842+
def module_imports_on_top_of_file(
843+
logical_line, indent_level, checker_state, noqa):
843844
r"""Imports are always put at the top of the file, just after any module
844845
comments and docstrings, and before module globals and constants.
845846

0 commit comments

Comments
 (0)