(response, destination)
| 23 | return None |
| 24 | |
| 25 | def save_response_content(response, destination): |
| 26 | CHUNK_SIZE = 32768 |
| 27 | |
| 28 | with open(destination, "wb") as f: |
| 29 | for chunk in response.iter_content(CHUNK_SIZE): |
| 30 | if chunk: # filter out keep-alive new chunks |
| 31 | f.write(chunk) |
| 32 | |
| 33 | file_id = '1ENgQm9TgabE1R99zhNf5q6meBvX6WFuq' |
| 34 | destination = './models.zip' |
no outgoing calls
no test coverage detected