3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 10:44:09 +01:00

protocols: simplify super() syntax

This commit is contained in:
James Lu 2016-04-05 18:37:09 -07:00
parent f620b5b4e8
commit 1e3aba2cce
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ from ts6_common import TS6BaseProtocol
class InspIRCdProtocol(TS6BaseProtocol): class InspIRCdProtocol(TS6BaseProtocol):
def __init__(self, irc): def __init__(self, irc):
super(InspIRCdProtocol, self).__init__(irc) super().__init__(irc)
# Set our case mapping (rfc1459 maps "\" and "|" together, for example). # Set our case mapping (rfc1459 maps "\" and "|" together, for example).
self.casemapping = 'rfc1459' self.casemapping = 'rfc1459'

View File

@ -18,7 +18,7 @@ from ts6_common import TS6BaseProtocol
class TS6Protocol(TS6BaseProtocol): class TS6Protocol(TS6BaseProtocol):
def __init__(self, irc): def __init__(self, irc):
super(TS6Protocol, self).__init__(irc) super().__init__(irc)
self.casemapping = 'rfc1459' self.casemapping = 'rfc1459'
self.hook_map = {'SJOIN': 'JOIN', 'TB': 'TOPIC', 'TMODE': 'MODE', 'BMASK': 'MODE', self.hook_map = {'SJOIN': 'JOIN', 'TB': 'TOPIC', 'TMODE': 'MODE', 'BMASK': 'MODE',
'EUID': 'UID'} 'EUID': 'UID'}

View File

@ -20,7 +20,7 @@ from ts6_common import TS6BaseProtocol
class UnrealProtocol(TS6BaseProtocol): class UnrealProtocol(TS6BaseProtocol):
def __init__(self, irc): def __init__(self, irc):
super(UnrealProtocol, self).__init__(irc) super().__init__(irc)
# Set our case mapping (rfc1459 maps "\" and "|" together, for example) # Set our case mapping (rfc1459 maps "\" and "|" together, for example)
self.casemapping = 'ascii' self.casemapping = 'ascii'
self.proto_ver = 4000 self.proto_ver = 4000