From fd386bb52d9260a5f600589f9fcc7909dee476f7 Mon Sep 17 00:00:00 2001 From: Aron Griffis Date: Fri, 5 Dec 2014 13:05:52 -0500 Subject: [PATCH] Avoid dict comprehension syntax for Python 2.6 compatibility. --- facebookads/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facebookads/objects.py b/facebookads/objects.py index 1504e5ea..175d877d 100644 --- a/facebookads/objects.py +++ b/facebookads/objects.py @@ -1771,7 +1771,7 @@ def reserve( self.Field.action: self.Action.reserve, } # Filter out None values. - params = {k: v for (k, v) in params.items() if v is not None} + params = dict((k, v) for k, v in params.items() if v is not None) response = self.get_api_assured().call( FacebookAdsApi.HTTP_METHOD_POST,