diff options
author | Ian Lee <IanLee1521@gmail.com> | 2014-12-15 19:49:16 -0800 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2014-12-15 19:49:16 -0800 |
commit | 88c0b8e0b83920c1813a4d061f98d470f9d06c30 (patch) | |
tree | 8684cd31c7fbb3cd86f6736738360ebb55ed9c38 | |
parent | ee85b32123e74bf844007207c22f493b8db7447b (diff) | |
download | pep8-88c0b8e0b83920c1813a4d061f98d470f9d06c30.tar.gz |
Update E402 error message emitted
-rwxr-xr-x | pep8.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |