Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Jan 31, 2025
1 parent 1ce0a3c commit 880bd8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10738,7 +10738,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__):
return httpfile


def download_file_from_http_string(url, headers=geturls_headers_pyarchivefile_python_alt, usehttp=__use_http_lib__):
def download_file_from_http_string(url, headers=geturls_headers_pycatfile_python_alt, usehttp=__use_http_lib__):
httpfile = download_file_from_http_file(url, headers, usehttp)
return httpfile.read()

Expand Down Expand Up @@ -10976,7 +10976,7 @@ def upload_file_to_pysftp_string(url):
return False


def download_file_from_internet_file(url, headers=geturls_headers_pyarchivefile_python_alt, usehttp=__use_http_lib__):
def download_file_from_internet_file(url, headers=geturls_headers_pycatfile_python_alt, usehttp=__use_http_lib__):
urlparts = urlparse(url)
if(urlparts.scheme == "http" or urlparts.scheme == "https"):
return download_file_from_http_file(url, headers, usehttp)
Expand All @@ -10992,7 +10992,7 @@ def download_file_from_internet_file(url, headers=geturls_headers_pyarchivefile_
return False


def download_file_from_internet_uncompress_file(url, headers=geturls_headers_pyarchivefile_python_alt, formatspecs=__file_format_dict__):
def download_file_from_internet_uncompress_file(url, headers=geturls_headers_pycatfile_python_alt, formatspecs=__file_format_dict__):
fp = download_file_from_internet_file(url)
fp = UncompressCatFile(fp, formatspecs)
fp.seek(0, 0)
Expand All @@ -11001,7 +11001,7 @@ def download_file_from_internet_uncompress_file(url, headers=geturls_headers_pya
return fp


def download_file_from_internet_string(url, headers=geturls_headers_pyarchivefile_python_alt):
def download_file_from_internet_string(url, headers=geturls_headers_pycatfile_python_alt):
urlparts = urlparse(url)
if(urlparts.scheme == "http" or urlparts.scheme == "https"):
return download_file_from_http_string(url, headers)
Expand All @@ -11017,7 +11017,7 @@ def download_file_from_internet_string(url, headers=geturls_headers_pyarchivefil
return False


def download_file_from_internet_uncompress_string(url, headers=geturls_headers_pyarchivefile_python_alt, formatspecs=__file_format_dict__):
def download_file_from_internet_uncompress_string(url, headers=geturls_headers_pycatfile_python_alt, formatspecs=__file_format_dict__):
fp = download_file_from_internet_string(url)
fp = UncompressCatFile(fp, formatspecs)
fp.seek(0, 0)
Expand Down

0 comments on commit 880bd8d

Please sign in to comment.