Skip to content

Commit

Permalink
Port _SixMetaPathImporter to Python 3.10. (#343)
Browse files Browse the repository at this point in the history
Fixes #341.

Co-authored-by: Benjamin Peterson <benjamin@python.org>
  • Loading branch information
vstinner and benjaminp authored Jan 3, 2021
1 parent c2a5935 commit e51553a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions six.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ def get_code(self, fullname):
return None
get_source = get_code # same as get_code

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

def exec_module(self, module):
pass

_importer = _SixMetaPathImporter(__name__)


Expand Down

0 comments on commit e51553a

Please sign in to comment.