diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-04-28 16:43:57 -0700 |
---|---|---|
committer | Anthony Sottile <asottile@umich.edu> | 2020-04-28 16:43:57 -0700 |
commit | 0126ce47f640e131a28029e8d75f9768a547f2f4 (patch) | |
tree | 4ffd6d1320deaba4929c76c9624dd784ff548b9d /pycodestyle.py | |
parent | 99f354dd37c872e457c0da27924c0ec95b8adffb (diff) | |
download | pep8-0126ce47f640e131a28029e8d75f9768a547f2f4.tar.gz |
E306: fix detection inside `async def`E306_async_def
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 0ad37e2..fe45548 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -383,7 +383,7 @@ def blank_lines(logical_line, blank_lines, indent_level, line_number, for line in lines[line_number - top_level_lines::-1]: if line.strip() and expand_indent(line) < ancestor_level: ancestor_level = expand_indent(line) - nested = line.lstrip().startswith('def ') + nested = STARTSWITH_DEF_REGEX.match(line.lstrip()) if nested or ancestor_level == 0: break if nested: |