2cfc3f
From a6ac88fa03735e94938693c354f28937e1e51ab7 Mon Sep 17 00:00:00 2001
2cfc3f
From: Victor Stinner <vstinner@python.org>
2cfc3f
Date: Mon, 14 Dec 2020 14:02:29 +0100
2cfc3f
Subject: [PATCH] Port _SixMetaPathImporter to Python 3.10
2cfc3f
2cfc3f
Fixes #341.
2cfc3f
---
2cfc3f
 six.py | 6 ++++++
2cfc3f
 1 file changed, 6 insertions(+)
2cfc3f
2cfc3f
diff --git a/six.py b/six.py
2cfc3f
index 83f69783..d162d09c 100644
2cfc3f
--- a/six.py
2cfc3f
+++ b/six.py
2cfc3f
@@ -223,6 +223,12 @@ def get_code(self, fullname):
2cfc3f
         return None
2cfc3f
     get_source = get_code  # same as get_code
2cfc3f
 
2cfc3f
+    def create_module(self, spec):
2cfc3f
+        return self.load_module(spec.name)
2cfc3f
+
2cfc3f
+    def exec_module(self, module):
2cfc3f
+        pass
2cfc3f
+
2cfc3f
 _importer = _SixMetaPathImporter(__name__)
2cfc3f
 
2cfc3f