Merge pull request #5654 from jdufresne/exec

Replace six.exec_() with Python 3 built-in exec()
This commit is contained in:
Takeshi KOMIYA 2018-11-21 20:28:54 +09:00 committed by GitHub
commit 45fadf7f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)