summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-01-03 17:21:40 +0100
committerGitHub <noreply@github.com>2021-01-03 10:21:40 -0600
commite51553a5c641eee17d584e163303043b22302fe0 (patch)
tree67025052e1c0d486ba311c860fa2082d01a6cf83
parentc2a593503c0365a9bde3d6265df6513d1d6762cc (diff)
downloadsix-git-e51553a5c641eee17d584e163303043b22302fe0.tar.gz
Port _SixMetaPathImporter to Python 3.10. (#343)
Fixes #341. Co-authored-by: Benjamin Peterson <benjamin@python.org>
-rw-r--r--six.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/six.py b/six.py
index 83f6978..d162d09 100644
--- a/six.py
+++ b/six.py
@@ -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__)