diff options
author | Ian Lee <IanLee1521@gmail.com> | 2014-12-14 18:21:11 -0800 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2014-12-14 18:21:11 -0800 |
commit | ed36d8b250474816c80bc11ce2bb313b23fad064 (patch) | |
tree | 86e0081bac2df422a6987b1bfe42f55a3e2c0669 | |
parent | f07ab575a8427751de63e10e02efae80c9085fbf (diff) | |
download | pep8-ed36d8b250474816c80bc11ce2bb313b23fad064.tar.gz |
Rename check to signify that it applies to module level imports only; issue #304
-rwxr-xr-x | pep8.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |