Skip to content

Commit

Permalink
🐛 fix deprecated Loader.load_module() (#728) (#729)
Browse files Browse the repository at this point in the history
(cherry picked from commit 53f0e31)

Co-authored-by: Lukas Burgholzer <[email protected]>
  • Loading branch information
mergify[bot] and burgholzer authored Nov 4, 2022
1 parent 4a483af commit 17c178f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions retworkx/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def __init__(self, new_package, old_namespace):
def module_repr(self, module):
return repr(module)

def create_module(self, spec):
return self.load_module(spec.name)

def exec_module(self, module):
pass

def load_module(self, fullname):
old_name = fullname
fullname = _new_namespace(fullname, self.old_namespace, self.new_package)
Expand Down

0 comments on commit 17c178f

Please sign in to comment.