From 4bb261ec15c28096e607aceef1755483f2bbc183 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 1 Aug 2016 04:41:51 -0500 Subject: [PATCH] fixed py3 import --- gluon/highlight.py | 2 +- gluon/html.py | 2 +- gluon/languages.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gluon/highlight.py b/gluon/highlight.py index 9aef3557..91b4fa78 100644 --- a/gluon/highlight.py +++ b/gluon/highlight.py @@ -8,7 +8,7 @@ """ from __future__ import print_function from pydal._compat import xrange -from local_html_escape import local_html_escape +from gluon.local_html_escape import local_html_escape import re __all__ = ['highlight'] diff --git a/gluon/html.py b/gluon/html.py index f8fe625c..db3a7c15 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -21,7 +21,7 @@ import base64 from gluon import sanitizer, decoder import itertools from pydal._compat import reduce, pickle, copyreg, HTMLParser, name2codepoint, iteritems, unichr, unicodeT, urllib_quote, to_bytes, to_native, to_unicode, basestring, urlencode, implements_bool -from local_html_escape import local_html_escape +from gluon.local_html_escape import local_html_escape import marshal from gluon.storage import Storage diff --git a/gluon/languages.py b/gluon/languages.py index 50cfa6d7..0daf475d 100644 --- a/gluon/languages.py +++ b/gluon/languages.py @@ -19,7 +19,7 @@ import logging from cgi import escape from threading import RLock from gluon.utf8 import Utf8 -from local_html_escape import local_html_escape +from gluon.local_html_escape import local_html_escape from pydal._compat import copyreg, PY2, maketrans, iterkeys, unicodeT, to_unicode, to_bytes, iteritems, to_native, pjoin from pydal.contrib.portalocker import read_locked, LockedFile