fix bot to actually use super()

there was total craziness in not just using a super upcall on
initializing the bot. Remove that.

Change-Id: I888257a4b41b65220b7520ba53b0753850b30dfd
This commit is contained in:
Sean Dague 2014-01-13 14:41:00 -05:00
parent 7f785589a6
commit 34744c1322
1 changed files with 6 additions and 4 deletions

View File

@ -40,7 +40,6 @@ openstack-qa:
import argparse
import ConfigParser
import daemon
import irc.bot
import logging
import logging.config
import os
@ -48,6 +47,9 @@ import threading
import time
import yaml
import irc.bot
try:
import daemon.pidlockfile
pid_file_module = daemon.pidlockfile
@ -61,8 +63,8 @@ except Exception:
class RecheckWatchBot(irc.bot.SingleServerIRCBot):
def __init__(self, channels, nickname, password, server, port=6667,
server_password=None):
irc.bot.SingleServerIRCBot.__init__(
self, [(server, port, server_password)], nickname, nickname)
super(RecheckWatchBot, self).__init__(
[(server, port, server_password)], nickname, nickname)
self.channel_list = channels
self.nickname = nickname
self.password = password
@ -96,7 +98,7 @@ class RecheckWatchBot(irc.bot.SingleServerIRCBot):
class RecheckWatch(threading.Thread):
def __init__(self, ircbot, channel_config, username,
queries, host, key, commenting=True):
threading.Thread.__init__(self)
super(RecheckWatch, self).__init__()
self.ircbot = ircbot
self.channel_config = channel_config
self.log = logging.getLogger('recheckwatchbot')