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-20 18:54:58 -0800
commit17e3b14a97c19704bf35221f89ac0567777ed7ad (patch)
treec22ba911ad25cc15cd3608843a4971fa2aac5057
parent373e0ac1138f0e24422b5e2e78f02ed0557d5c23 (diff)
downloadpep8-17e3b14a97c19704bf35221f89ac0567777ed7ad.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 920213a..92a10db 100755
--- a/pep8.py
+++ b/pep8.py
@@ -876,7 +876,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