Permalink
Browse files

s/sock/sck/g

  • Loading branch information...
1 parent 182d181 commit 68abc4a81d959341a1d93253c9d362500c6844d8 @benoitc benoitc committed Feb 2, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 couchapp/restkit/client.py
View
@@ -319,10 +319,10 @@ def connect(self, addr, ssl):
af, socktype, proto, canonname, sa = res
try:
- sock = socket.socket(af, socktype, proto)
+ sck = socket.socket(af, socktype, proto)
- sock.settimeout(self.timeout)
- sock.connect(sa)
+ sck.settimeout(self.timeout)
+ sck.connect(sa)
if ssl:
if not have_ssl:
@@ -331,14 +331,14 @@ def connect(self, addr, ssl):
+ "(http://pypi.python.org/pypi/ssl) "
+ "to be intalled.")
validate_ssl_args(self.ssl_args)
- sock = ssl.wrap_socket(sock, **self.ssl_args)
+ sock = ssl.wrap_socket(sck, **self.ssl_args)
# apply connect filters
- self.filters.apply("on_connect", self, sock, ssl)
+ self.filters.apply("on_connect", self, sck, ssl)
- return sock
+ return sck
except socket.error:
- close(sock)
+ close(sck)
raise socket.error, "getaddrinfo returns an empty list"
def get_connection(self):

0 comments on commit 68abc4a

Please sign in to comment.