Fixed an AttributeError (connection->conn)

This commit is contained in:
Jeremy Fincher 2003-03-25 19:22:28 +00:00
parent 6fa46793a0
commit 4b6f87f195
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class ThreadedFunCommands(callbacks.Privmsg):
"""takes no arguments"""
conn = telnetlib.Telnet('kernel.org', 79)
conn.write('\n')
text = connection.read_all()
text = conn.read_all()
for line in text.splitlines():
(name, version) = line.split(':')
if name.find('latest stable') != -1: