I don't know why I named it _res in the first place.

This commit is contained in:
James Vega 2004-01-13 02:48:25 +00:00
parent bed5624e86
commit 6a48344a98

View File

@ -113,7 +113,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp, configurable.Mixin):
_submitted = re.compile(r'<b>(Submitted By):</b><br>([^<]+)</td>', _reopts) _submitted = re.compile(r'<b>(Submitted By):</b><br>([^<]+)</td>', _reopts)
_priority = re.compile(r'<b>(Priority):</b> <a.+?<br>(.+?)</td>', _reopts) _priority = re.compile(r'<b>(Priority):</b> <a.+?<br>(.+?)</td>', _reopts)
_status = re.compile(r'<b>(Status):</b> <a.+?<br>(.+?)</td>', _reopts) _status = re.compile(r'<b>(Status):</b> <a.+?<br>(.+?)</td>', _reopts)
_res =(_resolution, _assigned, _submitted, _priority, _status) _regexps =(_resolution, _assigned, _submitted, _priority, _status)
configurables = configurable.Dictionary( configurables = configurable.Dictionary(
[('tracker-snarfer', configurable.BoolType, False, [('tracker-snarfer', configurable.BoolType, False,
@ -311,7 +311,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp, configurable.Mixin):
resp.append(desc) resp.append(desc)
else: else:
self.log.warning('Invalid Tracker page snarfed: %s', url) self.log.warning('Invalid Tracker page snarfed: %s', url)
for r in self._res: for r in self._regexps:
m = r.search(s) m = r.search(s)
if m: if m:
resp.append('%s: %s' % self._bold(m.groups())) resp.append('%s: %s' % self._bold(m.groups()))