"""Write any pending changes to disk."""
- # In order to be writing anything out at all, self._toc must
# already have been generated (and presumably has been modified
# by adding or deleting an item).
assert self._toc is not None
- if hasattr(self,'_file'):
def read(self, size=None):
return self._read(size, self._file.read)