diff options
Diffstat (limited to 'lib/mako/lexer.py')
-rw-r--r-- | lib/mako/lexer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mako/lexer.py b/lib/mako/lexer.py index 5c45ec0..cf6e126 100644 --- a/lib/mako/lexer.py +++ b/lib/mako/lexer.py @@ -122,7 +122,7 @@ class Lexer(object): return self.template def match_encoding(self): - match = self.match(r'#[\t ]*-\*- encoding: (.+?) -\*-\n') + match = self.match(r'#.*coding[:=]\s*([-\w.]+).*\n') if match: return match.group(1) else: |