Skip to content

Commit

Permalink
bugfix: when read size > chunk size, return read size and not chunk s…
Browse files Browse the repository at this point in the history
…ize (#767)
  • Loading branch information
ronreiter committed Sep 6, 2023
1 parent 085b711 commit 44c7342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart_open/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def read(self, size=-1):
if self._position == self._size:
return self._read_from_buffer()

self._fill_buffer()
self._fill_buffer(size)
return self._read_from_buffer(size)

def read1(self, size=-1):
Expand Down

0 comments on commit 44c7342

Please sign in to comment.