filecache.py

changeset 94
109fb7cf658f
parent 92
b8d72909d593
child 95
a3536e51f6bc
--- a/filecache.py	Mon Jun 24 17:34:30 2019 +0300
+++ b/filecache.py	Mon Jun 24 19:08:24 2019 +0300
@@ -89,7 +89,7 @@
         self.cache[filename] = subfile
         try:
             path = self.find_file(filename)
-            with path.open() as file:
+            with path.open('rb') as file:
                 model = parse.read_ldraw(
                     file,
                     ldraw_directories = self.ldraw_directories,

mercurial