From 5a9b29bb841bb86b6d1ce1d1727c21feed1869e4 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Tue, 1 Nov 2016 23:19:25 +0100 Subject: [PATCH] Make python-gut cope with the new async keyword. --- gut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gut.py b/gut.py index a1cb3a0..3cd6bb7 100755 --- a/gut.py +++ b/gut.py @@ -30,7 +30,7 @@ def indentation_of_line(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):