mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5654 from jdufresne/exec
Replace six.exec_() with Python 3 built-in exec()
This commit is contained in:
commit
45fadf7f77
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user