Commit 9ae1d60d authored by Lars Kruse's avatar Lars Kruse

fix incomplete reading of binary STL files

* random EOF (0x04) characters break the input stream in text files
* solution: open files in binary mode instead (ignoring EOF characters)
parent 2cabafd8
......@@ -155,7 +155,7 @@ class URIHandler(object):
def open(self):
if self.is_local():
return open(self.get_local_path())
return open(self.get_local_path(), "rb")
else:
return urllib.urlopen(self._uri.geturl())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment