From 20a485f6b9a4de1f73b2ad2d0f27175f8087704b Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 9 Aug 2012 22:08:32 -0400 Subject: [PATCH] time.sleep -> sleep --- earwigbot/irc/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/irc/connection.py b/earwigbot/irc/connection.py index c6cb1c6..228b6a4 100644 --- a/earwigbot/irc/connection.py +++ b/earwigbot/irc/connection.py @@ -90,7 +90,7 @@ class IRCConnection(object): with self._send_lock: time_since_last = time() - self._last_send if time_since_last < 0.75: - time.sleep(0.75 - time_since_last) + sleep(0.75 - time_since_last) try: self._sock.sendall(msg + "\r\n") except socket.error: