From: Ben Darnell Date: Tue, 26 Jul 2011 17:50:32 +0000 (-0700) Subject: Allow unicode string literals to appear in template expressions. X-Git-Tag: v2.1.0~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0ff0ed9e23cd48b4ce73a215134ee21fccbeea2;p=thirdparty%2Ftornado.git Allow unicode string literals to appear in template expressions. Closes #313. --- diff --git a/tornado/template.py b/tornado/template.py index 8963fd452..ce83a12e3 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -121,7 +121,8 @@ class Template(object): self.file = _File(_parse(reader, self)) self.code = self._generate_python(loader, compress_whitespace) try: - self.compiled = compile(self.code, "