Skip to content

Commit

Permalink
Make _get_url_from_gdrive_confirmation private
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Feb 1, 2024
1 parent d3f0bd7 commit 7b4caf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdown/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
home = osp.expanduser("~")


def get_url_from_gdrive_confirmation(contents):
def _get_url_from_gdrive_confirmation(contents):
url = ""
for line in contents.splitlines():
m = re.search(r'href="(\/uc\?export=download[^"]+)', line)
Expand Down Expand Up @@ -242,7 +242,7 @@ def download(

# Need to redirect with confirmation
try:
url = get_url_from_gdrive_confirmation(res.text)
url = _get_url_from_gdrive_confirmation(res.text)
except FileURLRetrievalError as e:
message = (
"Failed to retrieve file url:\n\n{}\n\n"
Expand Down

0 comments on commit 7b4caf2

Please sign in to comment.