From 4468372514925b7918fc262da94ba9690a496086 Mon Sep 17 00:00:00 2001 From: "Josh C. Wilson" Date: Mon, 10 Feb 2014 22:05:48 -0800 Subject: using relative import for compiler to avoid name collision with deprecated builtin compiler module in Python 2.5 --- jinja2/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1