summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-01-30 17:56:14 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-01-30 17:56:14 +0100
commitf848cbfdcb808805f110c88df16068f59918fad8 (patch)
tree9d3ad58dd912cea32988f06cf083a3c99bb1012e /redis/connection.py
parent0d804601255f93356b217ea690a0dc672033ac4a (diff)
downloadredis-py-f848cbfdcb808805f110c88df16068f59918fad8.tar.gz
Integer replies may be of type long
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py
index d178452..3f65ccd 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -124,7 +124,7 @@ class PythonConnection(BaseConnection):
return response
# int value
elif byte == ':':
- return int(response)
+ return long(response)
# bulk response
elif byte == '$':
length = int(response)