summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2018-05-24 09:20:26 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2019-07-19 14:58:36 +0300
commit0c28bbc2fb90e45f7ac1544aa72b717659cc4fcd (patch)
treec2db05d24d295c447794eeacab017f9b551281cd /examples
parent7213c0a60c7157ed9336f5f36b87f9b241d8d5fb (diff)
downloadapscheduler-0c28bbc2fb90e45f7ac1544aa72b717659cc4fcd.tar.gz
Dropped support for Python < 3.5
Fixes #259.
Diffstat (limited to 'examples')
-rw-r--r--examples/schedulers/asyncio_.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/schedulers/asyncio_.py b/examples/schedulers/asyncio_.py
index 88d9a82..a438ae1 100644
--- a/examples/schedulers/asyncio_.py
+++ b/examples/schedulers/asyncio_.py
@@ -3,16 +3,12 @@ Demonstrates how to use the asyncio compatible scheduler to schedule a job that
second intervals.
"""
-from datetime import datetime
+import asyncio
import os
+from datetime import datetime
from apscheduler.schedulers.asyncio import AsyncIOScheduler
-try:
- import asyncio
-except ImportError:
- import trollius as asyncio
-
def tick():
print('Tick! The time is: %s' % datetime.now())