From 9ef07cff198567deb1c3d706b32dde1a8f1f057b Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Wed, 10 Feb 2021 12:44:29 +0100 Subject: [PATCH] Split on the first occurence of "=" sign Fix cases where string values also contain "=" signs --- pyzebra/ccl_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzebra/ccl_io.py b/pyzebra/ccl_io.py index 34a4446..fa32338 100644 --- a/pyzebra/ccl_io.py +++ b/pyzebra/ccl_io.py @@ -104,7 +104,7 @@ def parse_1D(fileobj, data_type): # read metadata for line in fileobj: if "=" in line: - variable, value = line.split("=") + variable, value = line.split("=", 1) variable = variable.strip() value = value.strip()