fixed relative imports in Jinja for python3
This commit is contained in:
parent
2f45942adc
commit
7cad2c6788
4
3rdparty/jinja2/markupsafe/__init__.py
vendored
4
3rdparty/jinja2/markupsafe/__init__.py
vendored
@ -9,7 +9,7 @@
|
|||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
from _compat import text_type, string_types, int_types, \
|
from ._compat import text_type, string_types, int_types, \
|
||||||
unichr, PY2
|
unichr, PY2
|
||||||
|
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ class _MarkupEscapeHelper(object):
|
|||||||
try:
|
try:
|
||||||
from _speedups import escape, escape_silent, soft_unicode
|
from _speedups import escape, escape_silent, soft_unicode
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from _native import escape, escape_silent, soft_unicode
|
from ._native import escape, escape_silent, soft_unicode
|
||||||
|
|
||||||
if not PY2:
|
if not PY2:
|
||||||
soft_str = soft_unicode
|
soft_str = soft_unicode
|
||||||
|
2
3rdparty/jinja2/markupsafe/_native.py
vendored
2
3rdparty/jinja2/markupsafe/_native.py
vendored
@ -8,7 +8,7 @@
|
|||||||
:copyright: (c) 2010 by Armin Ronacher.
|
:copyright: (c) 2010 by Armin Ronacher.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
from _compat import text_type
|
from ._compat import text_type
|
||||||
|
|
||||||
|
|
||||||
def escape(s):
|
def escape(s):
|
||||||
|
2
3rdparty/jinja2/utils.py
vendored
2
3rdparty/jinja2/utils.py
vendored
@ -517,4 +517,4 @@ class Joiner(object):
|
|||||||
|
|
||||||
|
|
||||||
# Imported here because that's where it was in the past
|
# Imported here because that's where it was in the past
|
||||||
from markupsafe import Markup, escape, soft_unicode
|
from .markupsafe import Markup, escape, soft_unicode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user