Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Remove dependency for toro project #301

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions thriftpy/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -32,7 +32,6 @@
import logging
import socket
import struct
import toro


logger = logging.getLogger(__name__)
Expand All @@ -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
Expand Down