Fixing syntax issue. I had a 2.7+ style dict comprehension, so I made it 2.6 friendly.
This commit is contained in:
parent
88f465f9ce
commit
d7c0a0ad6c
@ -122,7 +122,7 @@ class Client(object):
|
||||
|
||||
# Open connection and send request, handling SSL certs
|
||||
certs = {'key_file':self.key_file, 'cert_file':self.cert_file}
|
||||
certs = {x:certs[x] for x in certs if x != None}
|
||||
certs = dict((x,certs[x]) for x in certs if certs[x] != None)
|
||||
|
||||
if self.use_ssl and len(certs):
|
||||
c = connection_type(self.host, self.port, **certs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user