Skip to content
Browse files

Merge pull request #244 from giltayar/master

Open socket connection with mode='rb' instead of 'r' to support IronPython
  • Loading branch information...
2 parents 102ec0f + 4c5fb11 commit 56625feb68203e0816c87cc6dde6164a6d8e302c @andymccurdy committed May 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 redis/connection.py
View
2 redis/connection.py
@@ -35,7 +35,7 @@ def __del__(self):
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"

0 comments on commit 56625fe

Please sign in to comment.
Something went wrong with that request. Please try again.