Fix a bug in Weather.wunder due to improperly ordered arguments to re.search

This commit is contained in:
James Vega 2005-02-11 17:13:46 +00:00
parent e3b039b2e3
commit 34d20cab44

View File

@ -352,7 +352,7 @@ class Weather(callbacks.Plugin):
if m:
severe = ircutils.bold(format(' %s', m.group(1)))
if 'Search not found' in text or \
re.search(text, r'size="2"> Place </font>', re.I):
re.search(r'size="2"> Place </font>', text, re.I):
self._noLocation()
soup = BeautifulSoup.BeautifulSoup()
soup.feed(text)