mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-29 08:24:54 +03:00
Format
This commit is contained in:
parent
0c51c2c698
commit
25d56ce0f7
|
@ -93,7 +93,9 @@ class RemoteStorage:
|
||||||
|
|
||||||
return prefix == abs_directory
|
return prefix == abs_directory
|
||||||
|
|
||||||
def safe_extract(tar, path=".", members=None, *, numeric_owner=False):
|
def safe_extract(
|
||||||
|
tar, path=".", members=None, *, numeric_owner=False
|
||||||
|
):
|
||||||
|
|
||||||
for member in tar.getmembers():
|
for member in tar.getmembers():
|
||||||
member_path = os.path.join(path, member.name)
|
member_path = os.path.join(path, member.name)
|
||||||
|
@ -102,7 +104,6 @@ class RemoteStorage:
|
||||||
|
|
||||||
tar.extractall(path, members, numeric_owner=numeric_owner)
|
tar.extractall(path, members, numeric_owner=numeric_owner)
|
||||||
|
|
||||||
|
|
||||||
safe_extract(tar_file, self.root)
|
safe_extract(tar_file, self.root)
|
||||||
return url
|
return url
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user