Removed unnecessary __init__ and die methods

This commit is contained in:
James Vega 2004-01-30 00:04:56 +00:00
parent fac4c5624c
commit b4d327cc61
6 changed files with 0 additions and 27 deletions

View File

@ -83,9 +83,6 @@ conf.registerGlobalValue(conf.supybot.plugins.Amazon, 'licenseKey',
class Amazon(callbacks.Privmsg):
threaded = True
def __init__(self):
callbacks.Privmsg.__init__(self)
def _genResults(self, reply, attribs, items, url, bold, bold_item):
results = {}
res = []

View File

@ -70,12 +70,6 @@ conf.registerGlobalValue(conf.supybot.plugins.Dict, 'server',
class Dict(callbacks.Privmsg):
threaded = True
def __init__(self):
callbacks.Privmsg.__init__(self)
def die(self):
callbacks.Privmsg.die(self)
def dictionaries(self, irc, msg, args):
"""takes no arguments.

View File

@ -81,11 +81,6 @@ class Ebay(callbacks.PrivmsgCommandAndRegexp):
"""
threaded = True
regexps = ['ebaySnarfer']
def __init__(self):
callbacks.PrivmsgCommandAndRegexp.__init__(self)
def die(self):
callbacks.PrivmsgCommandAndRegexp.die(self)
_reopts = re.I | re.S
_invalid = re.compile(r'(is invalid, still pending, or no longer in our '

View File

@ -89,12 +89,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
r'"#FFFF00">(\d+)')
_gkteam = re.compile(r'Team:(<.*?>)+(?P<name>.*?)</span>')
_gkseen = re.compile(r'(seen on GK:\s+([^[]+ago)|.*?is hiding.*?)')
def __init__(self):
callbacks.PrivmsgCommandAndRegexp.__init__(self)
def die(self):
callbacks.PrivmsgCommandAndRegexp.die(self)
def getStats(self, name):
gkprofile = 'http://www.gameknot.com/stats.pl?%s' % name
try:

View File

@ -172,9 +172,6 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
self.totalTime = 0
self.last24hours = structures.queue()
def die(self):
callbacks.PrivmsgCommandAndRegexp.die(self)
def formatData(self, data, bold=True, max=0):
if isinstance(data, basestring):
return data

View File

@ -127,11 +127,6 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
_statusOpt = {'any':100, 'open':1, 'closed':2, 'deleted':3, 'pending':4}
_projectURL = 'http://sourceforge.net/projects/'
def __init__(self):
callbacks.PrivmsgCommandAndRegexp.__init__(self)
def die(self):
callbacks.PrivmsgCommandAndRegexp.die(self)
def _formatResp(self, text, num=''):
"""