From d94a8090586619b8f046b4ca9ac63ac64469b877 Mon Sep 17 00:00:00 2001 From: Yasser Tahiri Date: Tue, 14 Sep 2021 04:41:24 +0100 Subject: [PATCH] Revert: Add the Deleted Comment --- mako/pygen.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mako/pygen.py b/mako/pygen.py index 02ee8a8..3aaf626 100644 --- a/mako/pygen.py +++ b/mako/pygen.py @@ -169,6 +169,9 @@ def _is_unindentor(self, line): # if the current line doesnt have one of the "unindentor" keywords, # return False match = re.match(r"^\s*(else|elif|except|finally).*\:", line) + # whitespace matches up, we have a compound indentor, + # and this line has an unindentor, this + # is probably good enough return bool(match) # should we decide that its not good enough, heres