summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2013-09-15 09:55:19 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2013-09-15 09:55:19 -0700
commit42388785e022a77b01aab93334b0acb402b781d7 (patch)
tree5ad2151b4f24ccb1f5826c799e3756d790a09017
parenta0857922093af7906ab6fd053e00f44a494e646c (diff)
parent76c509e72bc948d02f5a2a3797e4906864a174ba (diff)
downloadpystache-42388785e022a77b01aab93334b0acb402b781d7.tar.gz
Avoid using the "ur" string prefix.
This commit is more a matter of style since the Python 3 code generated by 2to3 is valid under Python 3.3. This merges remote-tracking branch 'sentience/development' into development and closes issue #152.
-rw-r--r--pystache/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pystache/parser.py b/pystache/parser.py
index c6a171f..ae8fc0e 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.
@@ -147,7 +147,7 @@ class _PartialNode(object):
def render(self, engine, context):
template = engine.resolve_partial(self.key)
# Indent before rendering.
- template = re.sub(NON_BLANK_RE, self.indent + ur'\1', template)
+ template = re.sub(NON_BLANK_RE, self.indent + u'\\1', template)
return engine.render(template, context)