Bugfix: split on first colon only
This commit is contained in:
parent
473a43d04d
commit
d81f48f8da
|
@ -52,8 +52,8 @@ def read_input(object_file):
|
|||
attr = []
|
||||
for line in object_file.readlines():
|
||||
if not line: continue
|
||||
attr.append({'name':line.split(':')[0].strip(),
|
||||
'value':line.split(':')[1].strip() })
|
||||
attr.append({'name':line.split(':', 1)[0].strip(),
|
||||
'value':line.split(':', 1)[1].strip() })
|
||||
|
||||
object_data = {
|
||||
"objects": {
|
||||
|
|
Loading…
Reference in a new issue