We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbaef30 commit 5723a54Copy full SHA for 5723a54
redis/client.py
@@ -155,7 +155,7 @@ def get_value(value):
155
156
def pairs_to_dict(response):
157
"Create a dict given a list of key/value pairs"
158
- return dict(zip(response[::2], map(float, response[1::2])))
+ return dict(zip(response[::2], response[1::2]))
159
160
def zset_score_pairs(response, **options):
161
"""
tests/server_commands.py
@@ -736,7 +736,7 @@ def test_hgetall(self):
736
# no key
737
self.assertEquals(self.client.hgetall('a'), None)
738
# real logic
739
- h = {'a1': 1, 'a2': 2, 'a3': 3}
+ h = {'a1': '1', 'a2': '2', 'a3': '3'}
740
self.make_hash('a', h)
741
remote_hash = self.client.hgetall('a')
742
self.assertEquals(h, remote_hash)
0 commit comments