From 5d4cf917c081e77733dcaae53c6df2ba3038c70c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 14 Apr 2011 19:45:11 -0400 Subject: [PATCH] remove unnecessary string import in bot.py --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 1216e8f..29f7a0d 100644 --- a/bot.py +++ b/bot.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- ## Imports -import socket, string, re, time +import socket, re, time from config.irc_config import * from config.secure_config import * @@ -21,11 +21,11 @@ def main(): time.sleep(60) # sleep for sixty seconds return # then exit our loop and restart the bot - lines = string.split(read_buffer, "\n") + lines = read_buffer.split("\n") read_buffer = lines.pop() for line in lines: - line = string.split(string.rstrip(line)) + line = line.strip().split("\n") data = Data() if line[1] == "JOIN":