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:
parent
f620b5b4e8
commit
1e3aba2cce
@ -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'
|
||||
|
||||
|
@ -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'}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user