mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Commented out some debug.printfs.
This commit is contained in:
parent
5eafec7121
commit
075af0967c
@ -262,7 +262,7 @@ class Http(callbacks.Privmsg):
|
|||||||
url = 'http://www.hamweather.net/cgi-bin/hw3/hw3.cgi?'\
|
url = 'http://www.hamweather.net/cgi-bin/hw3/hw3.cgi?'\
|
||||||
'config=&forecast=zandh&pands=%s&Submit=GO' % args[0]
|
'config=&forecast=zandh&pands=%s&Submit=GO' % args[0]
|
||||||
|
|
||||||
debug.printf(url)
|
#debug.printf(url)
|
||||||
try:
|
try:
|
||||||
fd = urllib2.urlopen(url)
|
fd = urllib2.urlopen(url)
|
||||||
html = fd.read()
|
html = fd.read()
|
||||||
@ -337,7 +337,7 @@ class Http(callbacks.Privmsg):
|
|||||||
fd.close()
|
fd.close()
|
||||||
# The following definitions are stripped and empties are removed.
|
# The following definitions are stripped and empties are removed.
|
||||||
defs = filter(None, map(str.strip, self._acronymre.findall(html)))
|
defs = filter(None, map(str.strip, self._acronymre.findall(html)))
|
||||||
debug.printf(defs)
|
#debug.printf(defs)
|
||||||
if len(defs) == 0:
|
if len(defs) == 0:
|
||||||
irc.reply(msg, 'No definitions found.')
|
irc.reply(msg, 'No definitions found.')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user