Remove some unused names

This commit is contained in:
David Macek 2021-04-24 19:31:24 +02:00 committed by Valentin Lorentz
parent e740953068
commit 4d2efc65ef
4 changed files with 2 additions and 5 deletions

View File

@ -95,7 +95,6 @@ class AdminTestCase(PluginTestCase):
self.assertEqual(m.args[1], 'key')
def testNick(self):
original = conf.supybot.nick()
try:
m = self.getMsg('nick foobar')
self.assertEqual(m.command, 'NICK')

View File

@ -31,7 +31,7 @@
import supybot.conf as conf
import supybot.ircutils as ircutils
import supybot.registry as registry
from supybot.i18n import PluginInternationalization, internationalizeDocstring
from supybot.i18n import PluginInternationalization
_ = PluginInternationalization('Services')
def registerNick(nick, password=''):
@ -44,7 +44,7 @@ def registerNick(nick, password=''):
v.setValue(password)
def configure(advanced):
from supybot.questions import expect, anything, something, yn, getpass
from supybot.questions import something
conf.registerPlugin('Services', True)
nick = something(_('What is your registered nick?'))
password = something(_('What is your password for that nick?'))

View File

@ -38,7 +38,6 @@ import supybot.utils as utils
from supybot.commands import *
import supybot.ircmsgs as ircmsgs
import supybot.ircutils as ircutils
import supybot.schedule as schedule
import supybot.callbacks as callbacks
from supybot.i18n import PluginInternationalization, internationalizeDocstring
_ = PluginInternationalization('Services')

View File

@ -1564,7 +1564,6 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
received* tags."""
if tag:
self._tagMsg(msg)
channel = msg.channel
preInFilter = str(msg).rstrip('\r\n')
log.debug('Incoming message (%s): %s', self.network, preInFilter)