From: Youness Alaoui Date: Wed, 14 Jan 2015 16:51:49 +0000 (-0500) Subject: bigDataStorage: Fix a TypeError when read is called with None X-Git-Tag: lulzbot-14.12~68 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a30317adc0d0fc145e10f25bc3eb7d9fd8b6f657;p=cura.git bigDataStorage: Fix a TypeError when read is called with None --- diff --git a/Cura/util/bigDataStorage.py b/Cura/util/bigDataStorage.py index 9150455c..7b469cf3 100644 --- a/Cura/util/bigDataStorage.py +++ b/Cura/util/bigDataStorage.py @@ -21,7 +21,7 @@ class BigDataStorage(object): self._active.seek(0) self._read_index = 0 - def read(self, size=None): + def read(self, size=-1): ret = self._active.read(size) if ret == '': if self._read_index + 1 < len(self._list): @@ -78,4 +78,4 @@ class BigDataStorage(object): for item in self._list: clone._list.append(StringIO.StringIO(item.getvalue())) clone._active = clone._list[-1] - return clone \ No newline at end of file + return clone