From: Tyler Smith Date: Mon, 1 Aug 2011 15:40:10 +0000 (-0700) Subject: Fixing syntax issue. I had a 2.7+ style dict comprehension, so I made it 2.6 friendly. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b69c8d02647c093ec16292efb4315fcbb1ab98db;p=openstack-build%2Fneutron-build.git Fixing syntax issue. I had a 2.7+ style dict comprehension, so I made it 2.6 friendly. --- 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)