summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2012-05-16 10:29:49 -0700
committerAndy McCurdy <andy@andymccurdy.com>2012-05-16 10:29:49 -0700
commit56625feb68203e0816c87cc6dde6164a6d8e302c (patch)
tree1d082f4e539083c586380c9b2677e7985f0cae57
parent102ec0ff2071bbd5f4e21e2b580fc1c509fd4e15 (diff)
parent4c5fb118c5ac8e8d4627124f8f16a5db05d9eb44 (diff)
downloadredis-py-56625feb68203e0816c87cc6dde6164a6d8e302c.tar.gz
Merge pull request #244 from giltayar/master
Open socket connection with mode='rb' instead of 'r' to support IronPython
-rw-r--r--redis/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py
index df875ad..6df60d8 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -35,7 +35,7 @@ class PythonParser(object):
def on_connect(self, connection):
"Called when the socket connects"
- self._fp = connection._sock.makefile('r')
+ self._fp = connection._sock.makefile('rb')
def on_disconnect(self):
"Called when the socket disconnects"