Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This reverts commit f99d4f2.
  • Loading branch information
hanhaowen-mt committed May 13, 2024
1 parent 6c495dc commit c00c2a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/paddle/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import hashlib
import os
import os.path as osp
import shlex
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -205,8 +204,7 @@ def _wget_download(url: str, fullname: str):
'https',
), 'Only support https and http url'
# using wget to download url
tmp_fullname = shlex.quote(fullname + "_tmp")
url = shlex.quote(url)
tmp_fullname = fullname + "_tmp"
# –user-agent
command = f'wget -O {tmp_fullname} -t {DOWNLOAD_RETRY_LIMIT} {url}'
subprc = subprocess.Popen(
Expand Down

0 comments on commit c00c2a6

Please sign in to comment.