Skip to content

Commit 3923abf

Browse files
committed
Python 2.7 fixes
1 parent 7ebe778 commit 3923abf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reportportal_client/services/statistics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def _load_properties(filepath, sep='=', comment_char='#'):
5252
for line in f:
5353
s_line = line.strip()
5454
if s_line and not s_line.startswith(comment_char):
55-
key, value = s_line.split(sep, maxsplit=1)
55+
sep_idx = s_line.index(sep)
56+
key = s_line[0:sep_idx]
57+
value = s_line[sep_idx + 1:]
5658
result[key.rstrip()] = value.lstrip()
5759
return result
5860

0 commit comments

Comments
 (0)