Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
33123bee
Unverified
Commit
33123bee
authored
Dec 01, 2021
by
Philip Meier
Committed by
GitHub
Nov 30, 2021
Browse files
[FBcode->GH] remove unused requests functionality (#5014)
Co-authored-by:
Prabhat Roy
<
prabhatroy@fb.com
>
parent
a7a36756
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
torchvision/datasets/utils.py
torchvision/datasets/utils.py
+0
-8
No files found.
torchvision/datasets/utils.py
View file @
33123bee
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment