Browse Source

Update Six compatibility library 1.15.0 (c0be881) → 1.16.0 (b620447).

tags/release_0.25.1
JackDandy 4 years ago
parent
commit
127b6315df
  1. 1
      CHANGES.md
  2. 18
      lib/six.py

1
CHANGES.md

@ -38,6 +38,7 @@
* Update humanize 3.1.0 (aec9dc2) to 3.2.0 (a0f03c1)
* Update Rarfile 3.1 (a4202ca) to 4.0 (55fe778)
* Update Requests library 2.24.0 (2f70990) to 2.25.1 (bdc00eb)
* Update Six compatibility library 1.15.0 (c0be881) to 1.16.0 (b620447)
* Update urllib3 1.25.11 (00f1769) to 1.26.2 (eae04d6)
* Add menu Shows/"Next Episode Cards"

18
lib/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__)

Loading…
Cancel
Save