ldcheck.py

changeset 94
109fb7cf658f
parent 92
b8d72909d593
child 98
f9d4e59392f7
child 146
3555679d276b
--- a/ldcheck.py	Mon Jun 24 17:34:30 2019 +0300
+++ b/ldcheck.py	Mon Jun 24 19:08:24 2019 +0300
@@ -119,7 +119,7 @@
             print('Description:', repr(subfile.description))
             print('Contains studs:', repr(subfile.has_studs))
     else:
-        with open(args.filename) as file:
+        with open(args.filename, 'rb') as file:
             from os.path import basename
             model = parse.read_ldraw(
                 file,

mercurial