Modernize legacy Python 2 syntax with pyupgrade.

Generated by `pyupgrade --py3-plus --keep-percent-format` followed by
manual indentation fixes.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-04-09 17:14:01 -07:00 committed by Tim Abbott
parent 543eb396b9
commit e30b3b094b
107 changed files with 192 additions and 244 deletions

View file

@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# An easy Trello integration for Zulip.
@ -39,7 +38,7 @@ def get_model_id(options):
params=params
)
if trello_response.status_code is not 200:
if trello_response.status_code != 200:
print('Error: Can\'t get the idModel. Please check the configuration')
sys.exit(1)
@ -77,7 +76,7 @@ def get_webhook_id(options, id_model):
data=data
)
if trello_response.status_code is not 200:
if trello_response.status_code != 200:
print('Error: Can\'t create the Webhook:', trello_response.text)
sys.exit(1)