Skip to content

Commit 779699f

Browse files
committed
Bump ThriftPy2 requirement to 0.4.11
Signed-off-by: Roger Aiudi <[email protected]>
1 parent 7411c19 commit 779699f

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

aiohappybase/connection.py

-10
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
import logging
77
from typing import AnyStr, List, Dict, Any
88

9-
from pkg_resources import parse_version
10-
11-
import thriftpy2
129
from thriftpy2.contrib.aio.transport import (
1310
TAsyncBufferedTransportFactory,
1411
TAsyncFramedTransportFactory,
@@ -39,13 +36,6 @@
3936
DEFAULT_TRANSPORT = os.environ.get('AIOHAPPYBASE_TRANSPORT', 'buffered')
4037
DEFAULT_PROTOCOL = os.environ.get('AIOHAPPYBASE_PROTOCOL', 'binary')
4138

42-
if parse_version(thriftpy2.__version__) <= parse_version('0.4.10'):
43-
_make_client = make_client
44-
45-
def make_client(*args, **kwargs):
46-
kwargs['socket_timeout'] = kwargs.pop('timeout', 3000)
47-
return _make_client(*args, **kwargs)
48-
4939

5040
class Connection:
5141
"""

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
thriftpy2>=0.4.10
1+
thriftpy2>=0.4.11
22
async_generator; python_version < '3.7'

0 commit comments

Comments
 (0)