mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Merge from 3.5
This commit is contained in:
commit
52c854a838
1 changed files with 1 additions and 1 deletions
|
@ -1306,7 +1306,7 @@ an :term:`importer`.
|
|||
suffixes = importlib.machinery.SOURCE_SUFFIXES
|
||||
loader = importlib.machinery.SourceFileLoader
|
||||
lazy_loader = importlib.util.LazyLoader.factory(loader)
|
||||
finder = importlib.machinery.FileFinder(path, [(lazy_loader, suffixes)])
|
||||
finder = importlib.machinery.FileFinder(path, (lazy_loader, suffixes))
|
||||
|
||||
.. _importlib-examples:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue