Skip to content

Commit

Permalink
Removing an useless \escaping in -*- coding -*- regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisilvio committed Feb 16, 2012
1 parent efa628e commit 0d73a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle.py
Expand Up @@ -2837,7 +2837,7 @@ def code(stmt):
else unicode(line, encoding=self.encoding)
sline = line.lstrip()
if lineno <= 2:
m = re.search(r"%.*coding[:=]\s*([-\w\.]+)", line)
m = re.search(r"%.*coding[:=]\s*([-\w.]+)", line)
if m: self.encoding = m.group(1)
if m: line = line.replace('coding','coding (removed)')
if sline and sline[0] == '%' and sline[:2] != '%%':
Expand Down

0 comments on commit 0d73a07

Please sign in to comment.