diff options
author | Georg Brandl <georg@python.org> | 2014-03-01 08:07:31 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-03-01 08:07:31 +0100 |
commit | d165644ce4ca06dcdc62053502f93ff5a39c489f (patch) | |
tree | 1490218b0c26b665f7a058d4b7c1dc21a61b7336 /sphinx/util/pycompat.py | |
parent | fc94bee00949e7ca951c850d7f45b8768d77fb80 (diff) | |
parent | f3dba82564ed76fc8016051a949859aa26d3cc2e (diff) | |
download | sphinx-git-d165644ce4ca06dcdc62053502f93ff5a39c489f.tar.gz |
merge with stable
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r-- | sphinx/util/pycompat.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py index 4c9ef18d3..47ff63116 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): |