From fa06f8afb826bc7e16e2919c3b6feee02417ce28 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 20 Mar 2024 03:46:37 +0000 Subject: automatic import of chromium --- chromium-105.0.5195.52-python-six-1.16.0.patch | 50 ++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 chromium-105.0.5195.52-python-six-1.16.0.patch (limited to 'chromium-105.0.5195.52-python-six-1.16.0.patch') 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 " +-__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__) + + -- cgit v1.2.3