summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jinja2/nodes.py2
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)