Skip to content

Commit

Permalink
update review feedback
Browse files Browse the repository at this point in the history
Change-Id: I5cc5d75ce180c509a466e9e2a6aef19a87a4b9e5
  • Loading branch information
CaselIT committed Oct 25, 2021
1 parent e25e337 commit c6243b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions mako/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ def match_reg(self, reg):
cp -= 1
self.matched_charpos = mp - cp
self.lineno += len(lines)
# print "MATCHED:", match.group(0), "LINE START:",
# self.matched_lineno, "LINE END:", self.lineno
# print "MATCH:", regexp, "\n", self.text[mp : mp + 15], \
# (match and "TRUE" or "FALSE")
return match

def parse_until_text(self, watch_nesting, *text):
Expand Down
5 changes: 1 addition & 4 deletions mako/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,8 @@ class Bar: pass


def read_file(path, mode="rb"):
fp = open(path, mode)
try:
with open(path, mode) as fp:
return fp.read()
finally:
fp.close()


def read_python_file(path):
Expand Down

0 comments on commit c6243b1

Please sign in to comment.