Fixing Python3.10 incompatibility

This commit is contained in:
Miroslav Stampar
2021-01-15 09:17:33 +01:00
parent 6fa5922fbd
commit fd137b49ef
3 changed files with 9 additions and 2 deletions

View File

@@ -223,6 +223,12 @@ class _SixMetaPathImporter(object):
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__)