From 1e3aba2cce92d9be10f3dec78a335fbf357f5b83 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 5 Apr 2016 18:37:09 -0700 Subject: [PATCH] protocols: simplify super() syntax --- protocols/inspircd.py | 2 +- protocols/ts6.py | 2 +- protocols/unreal.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 1245dbb..0e6ea95 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -19,7 +19,7 @@ from ts6_common import TS6BaseProtocol class InspIRCdProtocol(TS6BaseProtocol): def __init__(self, irc): - super(InspIRCdProtocol, self).__init__(irc) + super().__init__(irc) # Set our case mapping (rfc1459 maps "\" and "|" together, for example). self.casemapping = 'rfc1459' diff --git a/protocols/ts6.py b/protocols/ts6.py index ff55d64..e8ef5e8 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -18,7 +18,7 @@ from ts6_common import TS6BaseProtocol class TS6Protocol(TS6BaseProtocol): def __init__(self, irc): - super(TS6Protocol, self).__init__(irc) + super().__init__(irc) self.casemapping = 'rfc1459' self.hook_map = {'SJOIN': 'JOIN', 'TB': 'TOPIC', 'TMODE': 'MODE', 'BMASK': 'MODE', 'EUID': 'UID'} diff --git a/protocols/unreal.py b/protocols/unreal.py index e34a612..0d4c625 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -20,7 +20,7 @@ from ts6_common import TS6BaseProtocol class UnrealProtocol(TS6BaseProtocol): def __init__(self, irc): - super(UnrealProtocol, self).__init__(irc) + super().__init__(irc) # Set our case mapping (rfc1459 maps "\" and "|" together, for example) self.casemapping = 'ascii' self.proto_ver = 4000