Strip moved to the parser as it is more useful there
This commit is contained in:
1 parent
96cb6e2a15
commit
951883c6c6
1 file changed
+1
-1
@@ -23,7 +23,7 @@ def colon_separated_string_to_dict(string):
|
||||
line_data = line.split(':')
|
||||
|
||||
if len(line_data) > 1:
|
||||
dictionary[line_data[0].strip()] = ''.join(line_data[1:])
|
||||
dictionary[line_data[0].strip()] = ''.join(line_data[1:]).strip()
|
||||
elif len(line_data) == 1:
|
||||
dictionary[line_data[0].strip()] = None
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user