PYTHON-782 Fix readchunk() for disconnected GridOut.

This commit is contained in:
A. Jesse Jiryu Davis 2014-11-06 17:01:12 -05:00
parent bd895ca079
commit f787165d43

View File

@ -441,6 +441,7 @@ class GridOut(object):
"""Reads a chunk at a time. If the current position is within a
chunk the remainder of the chunk is returned.
"""
self._ensure_file()
received = len(self.__buffer)
chunk_data = EMPTY
chunk_size = int(self.chunk_size)