mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Do not pass arguments to object's __init__
This commit is contained in:
parent
73fb339b04
commit
d72b696739
@ -1,5 +1,6 @@
|
|||||||
###
|
###
|
||||||
# Copyright (c) 2002-2005, Jeremiah Fincher
|
# Copyright (c) 2002-2005, Jeremiah Fincher
|
||||||
|
# Copyright (c) 2008, James Vega
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -1054,7 +1055,7 @@ class BasePlugin(object):
|
|||||||
setattr(self, attr, cb)
|
setattr(self, attr, cb)
|
||||||
self.cbs.append(cb)
|
self.cbs.append(cb)
|
||||||
cb.log = log.getPluginLogger('%s.%s' % (self.name(),cb.name()))
|
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):
|
class SynchronizedAndFirewalled(log.MetaFirewall, utils.python.Synchronized):
|
||||||
pass # Necessary for the metaclass compatibility issue.
|
pass # Necessary for the metaclass compatibility issue.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
###
|
###
|
||||||
# Copyright (c) 2002-2004, Jeremiah Fincher
|
# Copyright (c) 2002-2004, Jeremiah Fincher
|
||||||
|
# Copyright (c) 2008, James Vega
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -69,7 +70,7 @@ class ServersMixin(object):
|
|||||||
def __init__(self, irc, servers=()):
|
def __init__(self, irc, servers=()):
|
||||||
self.networkGroup = conf.supybot.networks.get(irc.network)
|
self.networkGroup = conf.supybot.networks.get(irc.network)
|
||||||
self.servers = servers
|
self.servers = servers
|
||||||
super(ServersMixin, self).__init__(irc)
|
super(ServersMixin, self).__init__()
|
||||||
|
|
||||||
def _getServers(self):
|
def _getServers(self):
|
||||||
# We do this, rather than utils.iter.cycle the servers in __init__,
|
# We do this, rather than utils.iter.cycle the servers in __init__,
|
||||||
|
Loading…
Reference in New Issue
Block a user