mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Merge from 3.3
This commit is contained in:
commit
5df9f82547
1 changed files with 2 additions and 2 deletions
|
|
@ -1352,8 +1352,8 @@ class FileFinder:
|
||||||
|
|
||||||
def __init__(self, path, *details):
|
def __init__(self, path, *details):
|
||||||
"""Initialize with the path to search on and a variable number of
|
"""Initialize with the path to search on and a variable number of
|
||||||
3-tuples containing the loader, file suffixes the loader recognizes,
|
2-tuples containing the loader and the file suffixes the loader
|
||||||
and a boolean of whether the loader handles packages."""
|
recognizes."""
|
||||||
loaders = []
|
loaders = []
|
||||||
for loader, suffixes in details:
|
for loader, suffixes in details:
|
||||||
loaders.extend((suffix, loader) for suffix in suffixes)
|
loaders.extend((suffix, loader) for suffix in suffixes)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue