summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2014-12-14 18:21:11 -0800
committerIan Lee <IanLee1521@gmail.com>2014-12-14 18:21:11 -0800
commited36d8b250474816c80bc11ce2bb313b23fad064 (patch)
tree86e0081bac2df422a6987b1bfe42f55a3e2c0669
parentf07ab575a8427751de63e10e02efae80c9085fbf (diff)
downloadpep8-ed36d8b250474816c80bc11ce2bb313b23fad064.tar.gz
Rename check to signify that it applies to module level imports only; issue #304
-rwxr-xr-xpep8.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index aa1b835..d6f1617 100755
--- a/pep8.py
+++ b/pep8.py
@@ -839,7 +839,8 @@ def imports_on_separate_lines(logical_line):
yield found, "E401 multiple imports on one line"
-def imports_on_top_of_file(logical_line, indent_level, checker_state, noqa):
+def module_imports_on_top_of_file(
+ logical_line, indent_level, checker_state, noqa):
r"""Imports are always put at the top of the file, just after any module
comments and docstrings, and before module globals and constants.