Do not pass arguments to object's __init__

This commit is contained in:
James Vega 2008-12-08 20:38:11 +00:00
parent 73fb339b04
commit d72b696739
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
###
# Copyright (c) 2002-2005, Jeremiah Fincher
# Copyright (c) 2008, James Vega
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -1054,7 +1055,7 @@ class BasePlugin(object):
setattr(self, attr, cb)
self.cbs.append(cb)
cb.log = log.getPluginLogger('%s.%s' % (self.name(),cb.name()))
super(BasePlugin, self).__init__(*args, **kwargs)
super(BasePlugin, self).__init__()
class SynchronizedAndFirewalled(log.MetaFirewall, utils.python.Synchronized):
pass # Necessary for the metaclass compatibility issue.

View File

@ -1,5 +1,6 @@
###
# Copyright (c) 2002-2004, Jeremiah Fincher
# Copyright (c) 2008, James Vega
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -69,7 +70,7 @@ class ServersMixin(object):
def __init__(self, irc, servers=()):
self.networkGroup = conf.supybot.networks.get(irc.network)
self.servers = servers
super(ServersMixin, self).__init__(irc)
super(ServersMixin, self).__init__()
def _getServers(self):
# We do this, rather than utils.iter.cycle the servers in __init__,