Issue #17907: touch up the code for imp.new_module().

This commit is contained in:
Brett Cannon 2013-06-14 22:26:30 -04:00
parent 15e489f7c5
commit a3c96154d2
8 changed files with 3700 additions and 3558 deletions

View file

@ -205,6 +205,9 @@ file paths.
If :attr:`sys.implementation.cache_tag` is ``None``, then
:exc:`NotImplementedError` is raised.
.. deprecated:: 3.4
Use :func:`importlib.util.cache_from_source` instead.
.. function:: source_from_cache(path)
@ -220,6 +223,9 @@ file paths.
Raise :exc:`NotImplementedError` when
:attr:`sys.implementation.cache_tag` is not defined.
.. deprecated:: 3.4
Use :func:`importlib.util.source_from_cache` instead.
.. function:: get_tag()