Skip to content

Commit

Permalink
fixed relative imports in Jinja for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilton Bristow committed Dec 29, 2013
1 parent 2f45942 commit 7cad2c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 3rdparty/jinja2/markupsafe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:license: BSD, see LICENSE for more details.
"""
import re
from _compat import text_type, string_types, int_types, \
from ._compat import text_type, string_types, int_types, \
unichr, PY2


Expand Down Expand Up @@ -227,7 +227,7 @@ def __init__(self, obj, escape):
try:
from _speedups import escape, escape_silent, soft_unicode
except ImportError:
from _native import escape, escape_silent, soft_unicode
from ._native import escape, escape_silent, soft_unicode

if not PY2:
soft_str = soft_unicode
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/jinja2/markupsafe/_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from _compat import text_type
from ._compat import text_type


def escape(s):
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/jinja2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,4 +517,4 @@ def __call__(self):


# 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

0 comments on commit 7cad2c6

Please sign in to comment.