diff options
author | David Lord <davidism@gmail.com> | 2020-01-10 11:10:19 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2020-01-10 12:39:19 -0800 |
commit | 126fce8b049e94ffda5adc3b1c3a301998923c98 (patch) | |
tree | 05d39bd4c19537a96eb34f8c24ee10a0be185061 /src/jinja2/exceptions.py | |
parent | 963b5d3c3f426fa36160caef8a1f437e59036bdf (diff) | |
download | jinja2-126fce8b049e94ffda5adc3b1c3a301998923c98.tar.gz |
more relative imports
_identifier exports a compiled regex instead of a string to avoid some
tricky cleanup
Diffstat (limited to 'src/jinja2/exceptions.py')
-rw-r--r-- | src/jinja2/exceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jinja2/exceptions.py b/src/jinja2/exceptions.py index 1038370..8fa45c4 100644 --- a/src/jinja2/exceptions.py +++ b/src/jinja2/exceptions.py @@ -64,7 +64,7 @@ class TemplateNotFound(IOError, LookupError, TemplateError): IOError.__init__(self, name) if message is None: - from jinja2.runtime import Undefined + from .runtime import Undefined if isinstance(name, Undefined): name._fail_with_undefined_error() @@ -93,7 +93,7 @@ class TemplatesNotFound(TemplateNotFound): def __init__(self, names=(), message=None): if message is None: - from jinja2.runtime import Undefined + from .runtime import Undefined parts = [] |