Debian: remove @debianize (broken)

master
Valentin Lorentz 2011-03-02 18:27:41 +01:00
parent b052ecc5c7
commit 12e5ab134d
2 changed files with 0 additions and 23 deletions

View File

@ -466,26 +466,6 @@ class Debian(callbacks.Plugin, PeriodicFileDownloader):
irc.reply('I was unable to properly parse the BTS page.')
bug = wrap(bug, [('id', 'bug')])
_dpnRe = re.compile(r'"\+2">([^<]+)</font', re.I)
def debianize(self, irc, msg, args, words):
"""<text>
Turns <text> into a 'debian package name' using
http://www.pigdog.com/features/dpn.html.
"""
url = r'http://www.pigdog.org/cgi_bin/dpn.phtml?name=%s'
try:
text = utils.web.getUrl(url % '+'.join(words))
except utils.web.Error, e:
irc.error(str(e), Raise=True)
m = self._dpnRe.search(text)
if m is not None:
irc.reply(m.group(1))
else:
irc.errorPossibleBug('Unable to parse webpage.')
debianize = wrap(debianize, [many('something')])
Class = Debian

View File

@ -82,9 +82,6 @@ class DebianTestCase(PluginTestCase):
def testDebincoming(self):
self.assertNotError('incoming')
def testDebianize(self):
self.assertNotError('debianize supybot')
def testDebstats(self):
self.assertNotError('stats supybot')