From a0ff0ed9e23cd48b4ce73a215134ee21fccbeea2 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Tue, 26 Jul 2011 10:50:32 -0700 Subject: [PATCH] Allow unicode string literals to appear in template expressions. Closes #313. --- tornado/template.py | 3 ++- tornado/test/template_test.py | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) 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, "