Make python-gut cope with the new async keyword.
This commit is contained in:
parent
62fa8269dc
commit
5a9b29bb84
1 changed files with 1 additions and 1 deletions
2
gut.py
2
gut.py
|
|
@ -30,7 +30,7 @@ def indentation_of_line(line):
|
||||||
|
|
||||||
|
|
||||||
def is_start_line_of_signature(line):
|
def is_start_line_of_signature(line):
|
||||||
return re.match("^\s*def\s", line) is not None
|
return re.match("^\s*(async)?\s*def\s", line) is not None
|
||||||
|
|
||||||
|
|
||||||
def is_end_line_of_signature(line):
|
def is_end_line_of_signature(line):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue