Skip to content

Commit 1ad6132

Browse files
committedJun 14, 2013
Merge pull request #357 from studies/info_parse
Handling multiple collons when parsing INFO output
2 parents a6302d9 + 44ed518 commit 1ad6132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎redis/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def get_value(value):
104104

105105
for line in response.splitlines():
106106
if line and not line.startswith('#'):
107-
key, value = line.split(':')
107+
key, value = line.split(':', 1)
108108
info[key] = get_value(value)
109109
return info
110110

0 commit comments

Comments
 (0)