Replace six.exec_() with Python 3 built-in exec()

This commit is contained in:
Jon Dufresne 2018-11-20 21:28:14 -08:00
parent 2cbc921946
commit d7c781375f

View File

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