summaryrefslogtreecommitdiff
path: root/apscheduler/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'apscheduler/util.py')
-rw-r--r--apscheduler/util.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/apscheduler/util.py b/apscheduler/util.py
index d929a48..64b27d7 100644
--- a/apscheduler/util.py
+++ b/apscheduler/util.py
@@ -2,6 +2,7 @@
from __future__ import division
+from asyncio import iscoroutinefunction
from datetime import date, datetime, time, timedelta, tzinfo
from calendar import timegm
from functools import partial
@@ -22,15 +23,6 @@ try:
except ImportError:
TIMEOUT_MAX = 4294967 # Maximum value accepted by Event.wait() on Windows
-try:
- from asyncio import iscoroutinefunction
-except ImportError:
- try:
- from trollius import iscoroutinefunction
- except ImportError:
- def iscoroutinefunction(func):
- return False
-
__all__ = ('asint', 'asbool', 'astimezone', 'convert_to_datetime', 'datetime_to_utc_timestamp',
'utc_timestamp_to_datetime', 'timedelta_seconds', 'datetime_ceil', 'get_callable_name',
'obj_to_ref', 'ref_to_obj', 'maybe_ref', 'repr_escape', 'check_callable_args',