parse.py

changeset 29
db6ca177c6c4
parent 19
9169bad392c4
child 35
865cd526e8b6
child 41
4d87bc126368
--- a/parse.py	Tue Jan 23 14:09:44 2018 +0200
+++ b/parse.py	Tue Jan 23 14:09:52 2018 +0200
@@ -7,6 +7,8 @@
     pass
 
 def parse_ldraw_code(line):
+    if isinstance(line, bytes):
+        line = line.decode()
     line = line.strip()
     if not line:
         return linetypes.EmptyLine()

mercurial