mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-23 03:04:47 +00:00
revert formatter
This commit is contained in:
parent
5de3062ced
commit
78c09c792d
@ -73,11 +73,8 @@ class PluginLoader(importlib.abc.Loader):
|
|||||||
def dirs_in_zip(archive):
|
def dirs_in_zip(archive):
|
||||||
try:
|
try:
|
||||||
with ZipFile(archive) as zip_:
|
with ZipFile(archive) as zip_:
|
||||||
return set(
|
return set(itertools.chain.from_iterable(
|
||||||
itertools.chain.from_iterable(
|
Path(file).parents for file in zip_.namelist()))
|
||||||
Path(file).parents for file in zip_.namelist()
|
|
||||||
),
|
|
||||||
)
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user