From a30317adc0d0fc145e10f25bc3eb7d9fd8b6f657 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Wed, 14 Jan 2015 11:51:49 -0500 Subject: [PATCH] bigDataStorage: Fix a TypeError when read is called with None --- Cura/util/bigDataStorage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2