Fixing syntax issue. I had a 2.7+ style dict comprehension, so I made it 2.6 friendly.

This commit is contained in:
Tyler Smith 2011-08-01 08:40:10 -07:00
parent 88f465f9ce
commit d7c0a0ad6c

View File

@ -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)