From 0d4784cf4a944998612133a1dbc113de007bee72 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 26 Jan 2014 21:49:28 +0100 Subject: [PATCH] Fix compatibility with Python 2.6 (does not support the set syntax). --- src/irclib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index 51aea419d..4874e5189 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -628,9 +628,9 @@ class Irc(IrcCommandDispatcher): __firewalled__ = {'die': None, 'feedMsg': None, 'takeMsg': None,} - _nickSetters = {'001', '002', '003', '004', '250', '251', '252', + _nickSetters = set(['001', '002', '003', '004', '250', '251', '252', '254', '255', '265', '266', '372', '375', '376', - '333', '353', '332', '366', '005'} + '333', '353', '332', '366', '005']) # We specifically want these callbacks to be common between all Ircs, # that's why we don't do the normal None default with a check. def __init__(self, network, callbacks=_callbacks):