diff options
author | agronholm <devnull@localhost> | 2010-12-19 05:35:48 +0200 |
---|---|---|
committer | agronholm <devnull@localhost> | 2010-12-19 05:35:48 +0200 |
commit | c65e42b8b673164593a2d0ba68269a516ae1ca9f (patch) | |
tree | f4b6e1b1a099ef102c05899010feb1698460ed46 /apscheduler | |
parent | 3d173104a36dbb4f9e544400a9ebcf44e35b499b (diff) | |
download | apscheduler-c65e42b8b673164593a2d0ba68269a516ae1ca9f.tar.gz |
Fixed ImportError in py3k
Diffstat (limited to 'apscheduler')
-rw-r--r-- | apscheduler/threadpool.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apscheduler/threadpool.py b/apscheduler/threadpool.py index 49df439..fea5bd7 100644 --- a/apscheduler/threadpool.py +++ b/apscheduler/threadpool.py @@ -4,12 +4,16 @@ Please note that this ThreadPool does *not* fully implement the PEP 3148 ThreadPool! """ -from Queue import Queue, Empty from threading import Thread, Lock, currentThread from weakref import ref import logging import atexit +try: + from queue import Queue, Empty +except ImportError: + from Queue import Queue, Empty + logger = logging.getLogger(__name__) _threadpools = set() |