From 62d176209cec5995757ff9d95d6f042b49297e92 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 20 Dec 2015 04:41:02 +0100 Subject: [PATCH] Class attributes instead of instance attributes. --- irctest/controllers/limnoria.py | 5 +++-- irctest/controllers/sopel.py | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/irctest/controllers/limnoria.py b/irctest/controllers/limnoria.py index ca01b9e..4ae0ba4 100644 --- a/irctest/controllers/limnoria.py +++ b/irctest/controllers/limnoria.py @@ -17,14 +17,15 @@ supybot.networks.testnet.sasl.mechanisms: {mechanisms} """ class LimnoriaController(BaseClientController, DirectoryBasedController): + supported_sasl_mechanisms = { + 'PLAIN', 'ECDSA-NIST256P-CHALLENGE', 'EXTERNAL', + } def create_config(self): super().create_config() with self.open_file('bot.conf'): pass with self.open_file('conf/users.conf'): pass - self.supported_sasl_mechanisms = [ - 'PLAIN', 'ECDSA-NIST256P-CHALLENGE', 'EXTERNAL'] def run(self, hostname, port, auth): # Runs a client with the config given as arguments diff --git a/irctest/controllers/sopel.py b/irctest/controllers/sopel.py index 280d55a..78678aa 100644 --- a/irctest/controllers/sopel.py +++ b/irctest/controllers/sopel.py @@ -18,11 +18,13 @@ auth_password = {password} """ class SopelController(BaseClientController): + supported_sasl_mechanisms = [ + 'PLAIN', + ] def __init__(self): super().__init__() self.filename = next(tempfile._get_candidate_names()) + '.cfg' self.proc = None - self.supported_sasl_mechanisms = ['PLAIN'] def kill(self): if self.proc: self.proc.kill()