From 89f3f1e1320fbb2977e509f06f932a7f617a5263 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 3 Nov 2016 22:42:08 -0700 Subject: [PATCH] bench.readline: Make uvloop dep optional --- examples/bench/rlserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bench/rlserver.py b/examples/bench/rlserver.py index 796184c..9c9dbe6 100644 --- a/examples/bench/rlserver.py +++ b/examples/bench/rlserver.py @@ -1,7 +1,6 @@ import argparse import asyncio import gc -import uvloop import os.path import socket as socket_module @@ -44,6 +43,7 @@ if __name__ == '__main__': args = parser.parse_args() if args.uvloop: + import uvloop loop = uvloop.new_event_loop() print('using UVLoop') else: