summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2010-03-16 13:32:08 -0700
committerAndy McCurdy <andy@andymccurdy.com>2010-03-16 13:32:08 -0700
commit5723a5468c4c168e798cecd72d21922f9c53d2e8 (patch)
treef2965ba200135169b9b4d6392fe577fbbf564b59
parentdbaef302fb95da2f4d30e5449891fc72eb0942d7 (diff)
downloadredis-py-5723a5468c4c168e798cecd72d21922f9c53d2e8.tar.gz
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
-rw-r--r--redis/client.py2
-rw-r--r--tests/server_commands.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 006459d..ae04205 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -155,7 +155,7 @@ def parse_info(response):
def pairs_to_dict(response):
"Create a dict given a list of key/value pairs"
- return dict(zip(response[::2], map(float, response[1::2])))
+ return dict(zip(response[::2], response[1::2]))
def zset_score_pairs(response, **options):
"""
diff --git a/tests/server_commands.py b/tests/server_commands.py
index 53f6ecf..4d0fa20 100644
--- a/tests/server_commands.py
+++ b/tests/server_commands.py
@@ -736,7 +736,7 @@ class ServerCommandsTestCase(unittest.TestCase):
# no key
self.assertEquals(self.client.hgetall('a'), None)
# real logic
- h = {'a1': 1, 'a2': 2, 'a3': 3}
+ h = {'a1': '1', 'a2': '2', 'a3': '3'}
self.make_hash('a', h)
remote_hash = self.client.hgetall('a')
self.assertEquals(h, remote_hash)