From e545d1026abb917dead37616617d39b8f4d1dd40 Mon Sep 17 00:00:00 2001 From: Dave Rawks Date: Fri, 24 Jan 2014 15:39:02 -0800 Subject: [PATCH] Correct sleep calls Looks like we import "from time import sleep" but were calling "time.sleep" which is scoped into the wrong namespace. --- library/notification/irc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/notification/irc b/library/notification/irc index 11bdc4a95e..dcdaa7cef9 100644 --- a/library/notification/irc +++ b/library/notification/irc @@ -126,7 +126,7 @@ def send_msg(channel, msg, server='localhost', port='6667', break elif time.time() - start > timeout: raise Exception('Timeout waiting for IRC server welcome response') - time.sleep(0.5) + sleep(0.5) irc.send('JOIN %s\r\n' % channel) join = '' @@ -137,13 +137,13 @@ def send_msg(channel, msg, server='localhost', port='6667', break elif time.time() - start > timeout: raise Exception('Timeout waiting for IRC JOIN response') - time.sleep(0.5) + sleep(0.5) irc.send('PRIVMSG %s :%s\r\n' % (channel, message)) - time.sleep(1) + sleep(1) irc.send('PART %s\r\n' % channel) irc.send('QUIT\r\n') - time.sleep(1) + sleep(1) irc.close() # ===========================================