Skip to content

Commit 5723a54

Browse files
committed
fix for #18 -- i had copy/pasted some code from another function and forgot to actually change it! thanks to Sam (SJD) for the bug report
1 parent dbaef30 commit 5723a54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redis/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def get_value(value):
155155

156156
def pairs_to_dict(response):
157157
"Create a dict given a list of key/value pairs"
158-
return dict(zip(response[::2], map(float, response[1::2])))
158+
return dict(zip(response[::2], response[1::2]))
159159

160160
def zset_score_pairs(response, **options):
161161
"""

tests/server_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def test_hgetall(self):
736736
# no key
737737
self.assertEquals(self.client.hgetall('a'), None)
738738
# real logic
739-
h = {'a1': 1, 'a2': 2, 'a3': 3}
739+
h = {'a1': '1', 'a2': '2', 'a3': '3'}
740740
self.make_hash('a', h)
741741
remote_hash = self.client.hgetall('a')
742742
self.assertEquals(h, remote_hash)

0 commit comments

Comments
 (0)