forked from LBRYCommunity/lbry-sdk
fixing travis
This commit is contained in:
parent
ca6d5937ba
commit
4e4c4b5f96
2 changed files with 4 additions and 11 deletions
|
@ -1,4 +1,3 @@
|
|||
sudo: false
|
||||
language: python
|
||||
|
||||
python:
|
||||
|
@ -6,14 +5,8 @@ python:
|
|||
- "3.6"
|
||||
|
||||
install: pip install tox-travis coverage
|
||||
|
||||
script:
|
||||
- tox
|
||||
script: tox
|
||||
|
||||
after_success:
|
||||
- coverage combine tests/
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
|
|
@ -128,7 +128,7 @@ class Stream:
|
|||
def listen(self, on_data, on_error=None, on_done=None):
|
||||
return self._controller._listen(on_data, on_error, on_done)
|
||||
|
||||
def where(self, condition):
|
||||
def deferred_where(self, condition):
|
||||
deferred = Deferred()
|
||||
|
||||
def where_test(value):
|
||||
|
@ -142,8 +142,8 @@ class Stream:
|
|||
|
||||
return deferred
|
||||
|
||||
def async_where(self, condition):
|
||||
return self.where(condition).asFuture(asyncio.get_event_loop())
|
||||
def where(self, condition):
|
||||
return self.deferred_where(condition).asFuture(asyncio.get_event_loop())
|
||||
|
||||
@property
|
||||
def first(self):
|
||||
|
|
Loading…
Reference in a new issue