summaryrefslogtreecommitdiff
path: root/examples/hello_callback.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello_callback.py')
-rw-r--r--examples/hello_callback.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hello_callback.py b/examples/hello_callback.py
index 7ccbea1..f192c8d 100644
--- a/examples/hello_callback.py
+++ b/examples/hello_callback.py
@@ -1,6 +1,6 @@
"""Print 'Hello World' every two seconds, using a callback."""
-import asyncio
+import trollius
def print_and_repeat(loop):
@@ -9,7 +9,7 @@ def print_and_repeat(loop):
if __name__ == '__main__':
- loop = asyncio.get_event_loop()
+ loop = trollius.get_event_loop()
print_and_repeat(loop)
try:
loop.run_forever()