Commit 5e22ed05 authored by Jason R. Coombs's avatar Jason R. Coombs

Extract _load method which is the same as calling .load(False).

parent 83f82bb2
......@@ -2256,6 +2256,9 @@ class EntryPoint(object):
def load(self, require=True, env=None, installer=None):
if require:
self.require(env, installer)
return self._load()
def _load(self):
module = __import__(self.module_name, globals(), globals(),
['__name__'])
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment