summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-xpycodestyle.py2
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