diff options
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index 68d4140..e339d72 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -1068,7 +1068,7 @@ def module_imports_on_top_of_file( return line and (line[0] == '"' or line[0] == "'") allowed_keywords = ( - 'try', 'except', 'else', 'finally', 'with', 'if') + 'try', 'except', 'else', 'finally', 'with', 'if', 'elif') if indent_level: # Allow imports in conditional statement/function return |