Apply Python 3 futurize transform lib2to3.fixes.fix_has_key
Refer to #256
This commit is contained in:
parent
5272ca0674
commit
d8b2b5a0d8
|
@ -80,7 +80,7 @@ def check_permissions():
|
||||||
|
|
||||||
# builds the message dict for sending a message with the Zulip API
|
# builds the message dict for sending a message with the Zulip API
|
||||||
def build_message(event):
|
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? "
|
logging.error("Perhaps the Basecamp API changed behavior? "
|
||||||
"This event doesn't have the expected format:\n%s" %(event,))
|
"This event doesn't have the expected format:\n%s" %(event,))
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue