Skip to content

Commit e51553a

Browse files
vstinnerbenjaminp
andauthored
Port _SixMetaPathImporter to Python 3.10. (#343)
Fixes #341. Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent c2a5935 commit e51553a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

six.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ def get_code(self, fullname):
223223
return None
224224
get_source = get_code # same as get_code
225225

226+
def create_module(self, spec):
227+
return self.load_module(spec.name)
228+
229+
def exec_module(self, module):
230+
pass
231+
226232
_importer = _SixMetaPathImporter(__name__)
227233

228234

0 commit comments

Comments
 (0)