From ea0005289b1c49a46694e9a55968eb8eefdcd6c5 Mon Sep 17 00:00:00 2001 From: Julio Antonio Soto Date: Thu, 29 Jun 2017 18:46:19 +0200 Subject: [PATCH] Removed dependency for toro --- thriftpy/tornado.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/thriftpy/tornado.py b/thriftpy/tornado.py index fd53ebf..55775ee 100644 --- a/thriftpy/tornado.py +++ b/thriftpy/tornado.py @@ -18,7 +18,7 @@ from __future__ import absolute_import from contextlib import contextmanager -from tornado import tcpserver, ioloop, iostream, gen +from tornado import tcpserver, ioloop, iostream, gen, locks from io import BytesIO from datetime import timedelta @@ -32,7 +32,6 @@ import logging import socket import struct -import toro logger = logging.getLogger(__name__) @@ -52,7 +51,7 @@ def __init__(self, host, port, stream=None, io_loop=None, ssl_options=None, self.is_queuing_reads = False self.read_queue = [] self.__wbuf = BytesIO() - self._read_lock = toro.Lock() + self._read_lock = locks.Lock() self.ssl_options = ssl_options # servers provide a ready-to-go stream