From f988293f42d7b1e2dcc04ee4d2a6eb6e265ce5e6 Mon Sep 17 00:00:00 2001 From: skizzerz Date: Wed, 10 Jan 2018 12:30:03 -0700 Subject: [PATCH] rm extraneous nonlocals --- src/handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/handler.py b/src/handler.py index d07a6cb..ec993ca 100644 --- a/src/handler.py +++ b/src/handler.py @@ -293,7 +293,6 @@ def connect_callback(cli): if botconfig.SASL_AUTHENTICATION: @hook("authenticate") def auth_plus(cli, something, plus): - nonlocal selected_sasl if plus == "+": if selected_sasl == "EXTERNAL": cli.send("AUTHENTICATE +") @@ -312,7 +311,7 @@ def connect_callback(cli): @hook("906") @hook("907") def on_failure_auth(cli, *etc): - nonlocal supported_sasl, selected_sasl + nonlocal selected_sasl if selected_sasl == "EXTERNAL" and (supported_sasl is None or "PLAIN" in supported_sasl): # EXTERNAL failed, retry with PLAIN as we may not have set up the client cert yet selected_sasl = "PLAIN"