mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Remove unused Python variables in torch/[b-z]* (#136963)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/136963 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
fb44658415
commit
c0582fd0f8
@ -720,7 +720,7 @@ def download_url_to_file(
|
||||
# We deliberately do not use NamedTemporaryFile to avoid restrictive
|
||||
# file permissions being applied to the downloaded file.
|
||||
dst = os.path.expanduser(dst)
|
||||
for seq in range(tempfile.TMP_MAX):
|
||||
for _ in range(tempfile.TMP_MAX):
|
||||
tmp_dst = dst + "." + uuid.uuid4().hex + ".partial"
|
||||
try:
|
||||
f = open(tmp_dst, "w+b")
|
||||
|
Reference in New Issue
Block a user