summaryrefslogtreecommitdiff
path: root/sphinx/util/pycompat.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-03-01 08:07:31 +0100
committerGeorg Brandl <georg@python.org>2014-03-01 08:07:31 +0100
commit3f67ded92dde41315d421e660786be2f3d7c64cf (patch)
tree1490218b0c26b665f7a058d4b7c1dc21a61b7336 /sphinx/util/pycompat.py
parent532e6db1f0d4f8ae9cc8a8d54cfa70ef3e98682a (diff)
parent90a3b700dde603f76edd156d9226b12bd113cd1b (diff)
downloadsphinx-3f67ded92dde41315d421e660786be2f3d7c64cf.tar.gz
merge with stable
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r--sphinx/util/pycompat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py
index 4c9ef18d..47ff6311 100644
--- a/sphinx/util/pycompat.py
+++ b/sphinx/util/pycompat.py
@@ -48,6 +48,7 @@ if sys.version_info >= (3, 0):
raise SyntaxError(err.msg, (filepath, lineno, offset, err.value))
return unicode(tree)
from itertools import zip_longest # Python 3 name
+ import builtins
else:
# Python 2
@@ -71,6 +72,7 @@ else:
sys_encoding = locale.getpreferredencoding()
# use Python 3 name
from itertools import izip_longest as zip_longest
+ import __builtin__ as builtins
def execfile_(filepath, _globals):