Skip to content

Commit

Permalink
Update super syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 13, 2021
1 parent 3da8d0a commit 5ee34d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions irc/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(
recon=ExponentialBackoff(),
**connect_params,
):
super(SingleServerIRCBot, self).__init__()
super().__init__()
self.__connect_params = connect_params
self.channels = IRCDict()
specs = map(ServerSpec.ensure, server_list)
Expand Down Expand Up @@ -351,7 +351,7 @@ def on_dccchat(self, connection, event):
def start(self):
"""Start the bot."""
self._connect()
super(SingleServerIRCBot, self).start()
super().start()


class Channel:
Expand Down
4 changes: 2 additions & 2 deletions irc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class ServerConnection(Connection):
connected = False

def __init__(self, reactor):
super(ServerConnection, self).__init__(reactor)
super().__init__(reactor)
self.features = features.FeatureSet()

# save the method args to allow for easier reconnection.
Expand Down Expand Up @@ -956,7 +956,7 @@ class DCCConnection(Connection):
peerport = None

def __init__(self, reactor, dcctype):
super(DCCConnection, self).__init__(reactor)
super().__init__(reactor)
self.dcctype = dcctype

def connect(self, address, port):
Expand Down
2 changes: 1 addition & 1 deletion irc/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def lower(self):
self.translate(self.translation)
if self
# bypass translate, which returns self
else super(IRCFoldedCase, self).lower()
else super().lower()
)


Expand Down

0 comments on commit 5ee34d8

Please sign in to comment.