Skip to content

Commit

Permalink
Revert: Add the Deleted Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yezz123 committed Sep 14, 2021
1 parent 3408820 commit d94a809
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mako/pygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d94a809

Please sign in to comment.