mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Replace six.exec_() with Python 3 built-in exec()
This commit is contained in:
parent
2cbc921946
commit
d7c781375f
@ -14,7 +14,7 @@ from html import escape as htmlescape # NOQA
|
|||||||
from io import TextIOWrapper # NOQA
|
from io import TextIOWrapper # NOQA
|
||||||
from textwrap import indent # type: ignore # NOQA
|
from textwrap import indent # type: ignore # NOQA
|
||||||
|
|
||||||
from six import text_type, exec_
|
from six import text_type
|
||||||
|
|
||||||
if False:
|
if False:
|
||||||
# For type annotation
|
# For type annotation
|
||||||
@ -86,4 +86,4 @@ def execfile_(filepath, _globals, open=open):
|
|||||||
code = compile(source, filepath_enc, 'exec')
|
code = compile(source, filepath_enc, 'exec')
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
exec_(code, _globals)
|
exec(code, _globals)
|
||||||
|
Loading…
Reference in New Issue
Block a user