Skip to content

Commit 63d9e3f

Browse files
committed
Revert "Update __init__.py"
This reverts commit c5a23e3.
1 parent 32cfc2a commit 63d9e3f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

zirc/ext/sasl/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SASL authentication for zirc
22

3-
from sys import version_info
43
import base64
54
from . import scram
65
from ...errors import SASLError
@@ -17,10 +16,7 @@ def __init__(self, username, password, method="plain"):
1716

1817
def run(self, bot, args=None):
1918
if args is None:
20-
mechanisms = ["EXTERNAL", "PLAIN"]
21-
if not (version_info[0] == 3 and version_info[1] == 2):
22-
mechanisms.insert(0, "SCRAM-SHA256-PLUS")
23-
mechanisms.insert(1, "SCRAM-SHA256")
19+
mechanisms = ["SCRAM-SHA256-PLUS", "SCRAM-SHA256", "EXTERNAL", "PLAIN"]
2420
else:
2521
mechanisms = args
2622
self.bot = bot

0 commit comments

Comments
 (0)