mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
ruff: Fix SIM117 Use a single with statement with multiple contexts.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
b0f144327d
commit
b96feb34f6
@@ -66,9 +66,11 @@ def main() -> None:
|
||||
args = parser.parse_args()
|
||||
|
||||
sns_topic_arn = get_ses_arn(session, args)
|
||||
with our_sqs_queue(session, sns_topic_arn) as (queue_arn, queue_url):
|
||||
with our_sns_subscription(session, sns_topic_arn, queue_arn):
|
||||
print_messages(session, queue_url)
|
||||
with (
|
||||
our_sqs_queue(session, sns_topic_arn) as (queue_arn, queue_url),
|
||||
our_sns_subscription(session, sns_topic_arn, queue_arn),
|
||||
):
|
||||
print_messages(session, queue_url)
|
||||
|
||||
|
||||
def get_ses_arn(session: boto3.session.Session, args: argparse.Namespace) -> str:
|
||||
|
||||
Reference in New Issue
Block a user