diff options
author | Kevin Yank <thatguy@kevinyank.com> | 2013-09-15 15:09:31 +1000 |
---|---|---|
committer | Kevin Yank <thatguy@kevinyank.com> | 2013-09-15 15:14:49 +1000 |
commit | 367305df9e2a4afe2dd9d31a987ca3b94b476780 (patch) | |
tree | 1177db61f35b0df445939bed661e1af21e629e62 | |
parent | 5a9bd7e020f80eb248115df7a8027cf3d0ab5f62 (diff) | |
download | pystache-367305df9e2a4afe2dd9d31a987ca3b94b476780.tar.gz |
Fix syntax error in Python 3.3.
“Unicode Raw” strings are no longer supported in Python 3.3, and cause a syntax error. See http://bugs.python.org/issue15096. Without this fix, Pystache gives a syntax error when used in a Python 3.3 environment.
-rw-r--r-- | pystache/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pystache/parser.py b/pystache/parser.py index c6a171f..c3c5ef0 100644 --- a/pystache/parser.py +++ b/pystache/parser.py @@ -12,7 +12,7 @@ from pystache.parsed import ParsedTemplate END_OF_LINE_CHARACTERS = [u'\r', u'\n'] -NON_BLANK_RE = re.compile(ur'^(.)', re.M) +NON_BLANK_RE = re.compile(u'^(.)', re.M) # TODO: add some unit tests for this. |