summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2014-12-15 19:49:16 -0800
committerIan Lee <IanLee1521@gmail.com>2014-12-15 19:49:16 -0800
commit88c0b8e0b83920c1813a4d061f98d470f9d06c30 (patch)
tree8684cd31c7fbb3cd86f6736738360ebb55ed9c38
parentee85b32123e74bf844007207c22f493b8db7447b (diff)
downloadpep8-88c0b8e0b83920c1813a4d061f98d470f9d06c30.tar.gz
Update E402 error message emitted
-rwxr-xr-xpep8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index cdfbb70..f9f08d9 100755
--- a/pep8.py
+++ b/pep8.py
@@ -874,7 +874,7 @@ def module_imports_on_top_of_file(
line = logical_line
if line.startswith('import ') or line.startswith('from '):
if checker_state.get('seen_non_imports', False):
- yield 0, "E402 import not at top of file"
+ yield 0, "E402 module level import not at top of file"
elif any(line.startswith(kw) for kw in allowed_try_keywords):
# Allow try, except, else, finally keywords intermixed with imports in
# order to support conditional importing