From d8b2b5a0d855a58cc1ccde12d34060835593949b Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Thu, 10 Mar 2016 19:09:44 +0530 Subject: [PATCH] Apply Python 3 futurize transform lib2to3.fixes.fix_has_key Refer to #256 --- integrations/basecamp/zulip_basecamp_mirror | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/basecamp/zulip_basecamp_mirror b/integrations/basecamp/zulip_basecamp_mirror index abacb31..4bc4f66 100755 --- a/integrations/basecamp/zulip_basecamp_mirror +++ b/integrations/basecamp/zulip_basecamp_mirror @@ -80,7 +80,7 @@ def check_permissions(): # builds the message dict for sending a message with the Zulip API def build_message(event): - if not (event.has_key('bucket') and event.has_key('creator') and event.has_key('html_url')): + if not ('bucket' in event and 'creator' in event and 'html_url' in event): logging.error("Perhaps the Basecamp API changed behavior? " "This event doesn't have the expected format:\n%s" %(event,)) return None