From d81f48f8dab2815022d64bf42ca1c1d72a624dd3 Mon Sep 17 00:00:00 2001 From: Benjamin Collet Date: Wed, 4 Jul 2018 13:56:59 +0200 Subject: [PATCH] Bugfix: split on first colon only --- ripe-api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ripe-api.py b/ripe-api.py index 11830be..4798af2 100755 --- a/ripe-api.py +++ b/ripe-api.py @@ -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": {