diff options
author | Victor Stinner <vstinner@python.org> | 2021-01-03 17:21:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 10:21:40 -0600 |
commit | e51553a5c641eee17d584e163303043b22302fe0 (patch) | |
tree | 67025052e1c0d486ba311c860fa2082d01a6cf83 /six.py | |
parent | c2a593503c0365a9bde3d6265df6513d1d6762cc (diff) | |
download | six-git-e51553a5c641eee17d584e163303043b22302fe0.tar.gz |
Port _SixMetaPathImporter to Python 3.10. (#343)
Fixes #341.
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Diffstat (limited to 'six.py')
-rw-r--r-- | six.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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__) |