From fdc5612dce08b9299effa571c7bd27d06fa38c1a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 16 Apr 2004 08:17:24 +0000 Subject: [PATCH] Readability. --- src/asyncoreDrivers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asyncoreDrivers.py b/src/asyncoreDrivers.py index a6cdfbbc5..85d8dc41e 100644 --- a/src/asyncoreDrivers.py +++ b/src/asyncoreDrivers.py @@ -53,7 +53,7 @@ class AsyncoreRunnerDriver(drivers.IrcDriver): #log.debug(repr(asyncore.socket_map)) try: timeout = conf.supybot.drivers.poll() - if len(asyncore.socket_map.keys()) < 1: + if not asyncore.socket_map: # FIXME: asyncore should take care of this... but it doesn't? time.sleep(timeout) else: