Slightly changed the formatting of the output (again).

This commit is contained in:
Jeremy Fincher 2003-03-13 07:37:21 +00:00
parent d9b17f5a45
commit ee7e27436c

View File

@ -184,9 +184,9 @@ class Http(callbacks.Privmsg):
html = urllib2.urlopen(url).read() html = urllib2.urlopen(url).read()
city, state = self._cityregex.search(html).groups() city, state = self._cityregex.search(html).groups()
temp = self._tempregex.search(html).group(1) temp = self._tempregex.search(html).group(1)
conds = self._condregex.search(html).group(1).strip() conds = self._condregex.search(html).group(1)
irc.reply(msg, 'The current temperature in %s, %s is %dF with %s\ irc.reply(msg, 'The current temperature in %s, %s is %dF with %s'\
conditions' % (city, state, int(temp), conds)) ' conditions' % (city, state, int(temp), conds))
except AttributeError: except AttributeError:
irc.error(msg, 'the format of the page was odd.') irc.error(msg, 'the format of the page was odd.')
except urllib2.URLError: except urllib2.URLError: