diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-21 20:28:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 20:28:54 +0900 |
commit | 45fadf7f77417ba2c43227e3a08107b63f4a27d3 (patch) | |
tree | 26ffaadccfa83870cbe09c3b4b5ad2fa03cda2ca | |
parent | 2cbc921946c20e072965f746090003fe41f5ddf1 (diff) | |
parent | d7c781375f4c34257476f8fe472913f1653f7382 (diff) | |
download | sphinx-git-45fadf7f77417ba2c43227e3a08107b63f4a27d3.tar.gz |
Merge pull request #5654 from jdufresne/exec
Replace six.exec_() with Python 3 built-in exec()
-rw-r--r-- | sphinx/util/pycompat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py index a3521b01e..7c2b0dad3 100644 --- a/sphinx/util/pycompat.py +++ b/sphinx/util/pycompat.py @@ -14,7 +14,7 @@ from html import escape as htmlescape # NOQA from io import TextIOWrapper # NOQA from textwrap import indent # type: ignore # NOQA -from six import text_type, exec_ +from six import text_type if False: # For type annotation @@ -86,4 +86,4 @@ def execfile_(filepath, _globals, open=open): code = compile(source, filepath_enc, 'exec') else: raise - exec_(code, _globals) + exec(code, _globals) |