Skip to content

Commit 6f974ef

Browse files
Merge pull request #475 from afuetterer/urlretrieve
chore: remove obsolete bytes_downloaded variable
2 parents d43850a + fae0287 commit 6f974ef

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tika/tika.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,10 @@ def _urlretrieve(
770770
)
771771
response.raise_for_status()
772772

773-
bytes_downloaded = 0
774773
with open(filename, "wb") as f:
775774
for chunk in response.iter_content(chunk_size=chunk_size):
776775
if chunk: # Filter out keep-alive chunks
777776
f.write(chunk)
778-
bytes_downloaded += len(chunk)
779777

780778
return filename
781779

0 commit comments

Comments
 (0)