diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2014-06-06 22:19:02 +0600 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2014-06-06 22:19:02 +0600 |
commit | a2d7871f5ca5f87e937d5aeb20b8478dd15f679c (patch) | |
tree | f97d34e4904e12b9373d1dc44e2b89e325102a79 | |
parent | 1116573c1159abb18e36ea96d8fbbde3cad23974 (diff) | |
parent | 4468372514925b7918fc262da94ba9690a496086 (diff) | |
download | jinja2-2.5-maintenance.tar.gz |
Merge pull request #299 from jcwilson/2.5-maintenance2.5-maintenance
Use relative import for compiler module in nodes.py (Python 2.5 support)
-rw-r--r-- | jinja2/nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jinja2/nodes.py b/jinja2/nodes.py index 6446c70..2ad2722 100644 --- a/jinja2/nodes.py +++ b/jinja2/nodes.py @@ -431,7 +431,7 @@ class Const(Literal): constant value in the generated code, otherwise it will raise an `Impossible` exception. """ - from compiler import has_safe_repr + from .compiler import has_safe_repr if not has_safe_repr(value): raise Impossible() return cls(value, lineno=lineno, environment=environment) |