Unverified Commit 33123bee authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

[FBcode->GH] remove unused requests functionality (#5014)


Co-authored-by: default avatarPrabhat Roy <prabhatroy@fb.com>
parent a7a36756
...@@ -233,14 +233,6 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[ ...@@ -233,14 +233,6 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[
_save_response_content(itertools.chain((first_chunk,), content), fpath) _save_response_content(itertools.chain((first_chunk,), content), fpath)
def _get_confirm_token(response: "requests.models.Response") -> Optional[str]: # type: ignore[name-defined]
for key, value in response.cookies.items():
if key.startswith("download_warning"):
return value
return None
def _save_response_content( def _save_response_content(
response_gen: Iterator[bytes], response_gen: Iterator[bytes],
destination: str, # type: ignore[name-defined] destination: str, # type: ignore[name-defined]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment