diff options
Diffstat (limited to 'chromium-105.0.5195.52-python-six-1.16.0.patch')
-rw-r--r-- | chromium-105.0.5195.52-python-six-1.16.0.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/chromium-105.0.5195.52-python-six-1.16.0.patch b/chromium-105.0.5195.52-python-six-1.16.0.patch new file mode 100644 index 0000000..ece7e22 --- /dev/null +++ b/chromium-105.0.5195.52-python-six-1.16.0.patch @@ -0,0 +1,50 @@ +diff --git a/third_party/catapult/third_party/six/six.py b/third_party/catapult/third_party/six/six.py +index 83f69783d1..4e15675d8b 100644 +--- a/third_party/catapult/third_party/six/six.py ++++ b/third_party/catapult/third_party/six/six.py +@@ -29,7 +29,7 @@ import sys + import types + + __author__ = "Benjamin Peterson <benjamin@python.org>" +-__version__ = "1.15.0" ++__version__ = "1.16.0" + + + # Useful for very coarse version differentiation. +@@ -71,6 +71,11 @@ else: + MAXSIZE = int((1 << 63) - 1) + del X + ++if PY34: ++ from importlib.util import spec_from_loader ++else: ++ spec_from_loader = None ++ + + def _add_doc(func, doc): + """Add documentation to a function.""" +@@ -186,6 +191,11 @@ class _SixMetaPathImporter(object): + return self + return None + ++ def find_spec(self, fullname, path, target=None): ++ if fullname in self.known_modules: ++ return spec_from_loader(fullname, self) ++ return None ++ + def __get_module(self, fullname): + try: + return self.known_modules[fullname] +@@ -223,6 +233,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__) + + |