diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2010-04-01 23:53:34 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-04-01 23:53:34 -0700 |
commit | 4efa5de487363b7c1d86b0a6a6719dee7fe507b4 (patch) | |
tree | e3254a529eaf0773f638565bf2920580b4696288 /redis/client.py | |
parent | 6268781d94d27e86403108c96cf7d687b34f2a7b (diff) | |
download | redis-py-4efa5de487363b7c1d86b0a6a6719dee7fe507b4.tar.gz |
[cosmetic] stupid 80 characters
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py index c159a33..7dc5e06 100644 --- a/redis/client.py +++ b/redis/client.py @@ -53,11 +53,14 @@ class Connection(object): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((self.host, self.port)) except socket.error, e: - # args for socket.error can either be (errno, "message") or just "message" + # args for socket.error can either be (errno, "message") + # or just "message" if len(e.args) == 1: - error_message = "Error connecting to %s:%s. %s." % (self.host, self.port, e.args[0]) + error_message = "Error connecting to %s:%s. %s." % \ + (self.host, self.port, e.args[0]) else: - error_message = "Error %s connecting %s:%s. %s." % (e.args[0], self.host, self.port, e.args[1]) + error_message = "Error %s connecting %s:%s. %s." % \ + (e.args[0], self.host, self.port, e.args[1]) raise ConnectionError(error_message) sock.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1) sock.settimeout(self.socket_timeout) |