From b69c8d02647c093ec16292efb4315fcbb1ab98db Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Mon, 1 Aug 2011 08:40:10 -0700 Subject: [PATCH] Fixing syntax issue. I had a 2.7+ style dict comprehension, so I made it 2.6 friendly. --- quantum/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/client.py b/quantum/client.py index 5f832398b..1c470df22 100644 --- a/quantum/client.py +++ b/quantum/client.py @@ -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) -- 2.45.2