summaryrefslogtreecommitdiff
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2020-07-11 12:51:48 -0600
committerAlex Henrie <alexhenrie24@gmail.com>2020-07-11 12:51:48 -0600
commit8b4ce333c093f459698c0545550269a393387c5f (patch)
treeb380e7ba6abd54ea8862a7bba1151b167bf546b2 /setuptools/command/bdist_egg.py
parent599f6393c1be4d5852f5b9884b9fb282a16ca64a (diff)
downloadpython-setuptools-git-8b4ce333c093f459698c0545550269a393387c5f.tar.gz
Change exec_module to load_module
Fixes #2246
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index e94fe252..7af3165c 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -59,7 +59,7 @@ def write_stub(resource, pyfile):
from importlib.machinery import ExtensionFileLoader
__file__ = pkg_resources.resource_filename(__name__, %r)
__loader__ = None; del __bootstrap__, __loader__
- ExtensionFileLoader(__name__,__file__).exec_module()
+ ExtensionFileLoader(__name__,__file__).load_module()
__bootstrap__()
""").lstrip()
with open(pyfile, 'w') as f: