-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
sphinx == 3.5.3 | ||
sphinx_rtd_theme == 0.5.1 | ||
sphinx == 4.4.0 | ||
sphinx_rtd_theme == 1.0.0 | ||
sphinx-computron >= 0.2, < 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
import types | ||
|
||
__author__ = "Benjamin Peterson <[email protected]>" | ||
__version__ = "1.15.0" | ||
__version__ = "1.16.0" | ||
|
||
|
||
# Useful for very coarse version differentiation. | ||
|
@@ -71,6 +71,11 @@ def __len__(self): | |
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 @@ def find_module(self, fullname, path=None): | |
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 @@ def get_code(self, fullname): | |
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__) | ||
|
||
|
||
|