瀏覽代碼

time.sleep -> sleep

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
20a485f6b9
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      earwigbot/irc/connection.py

+ 1
- 1
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:


Loading…
取消
儲存