From 34d20cab44f48bd5d47d8354e044651a011c1af2 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 11 Feb 2005 17:13:46 +0000 Subject: [PATCH] Fix a bug in Weather.wunder due to improperly ordered arguments to re.search --- plugins/Weather/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Weather/plugin.py b/plugins/Weather/plugin.py index b331fcf29..96a5fb95a 100644 --- a/plugins/Weather/plugin.py +++ b/plugins/Weather/plugin.py @@ -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 ', re.I): + re.search(r'size="2"> Place ', text, re.I): self._noLocation() soup = BeautifulSoup.BeautifulSoup() soup.feed(text)