From b6df2b9d2820d05d25690fdf3bb8c8ff608a9bbb Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 13 Feb 2019 20:44:38 -0300 Subject: [PATCH] missing None for optional field + pylint --- lbrynet/stream/assembler.py | 2 +- lbrynet/stream/stream_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/stream/assembler.py b/lbrynet/stream/assembler.py index ab0572e21..9388ee872 100644 --- a/lbrynet/stream/assembler.py +++ b/lbrynet/stream/assembler.py @@ -30,7 +30,7 @@ async def get_next_available_file_name(loop: asyncio.BaseEventLoop, download_dir class StreamAssembler: def __init__(self, loop: asyncio.BaseEventLoop, blob_manager: 'BlobFileManager', sd_hash: str, - output_file_name: typing.Optional[str]): + output_file_name: typing.Optional[str] = None): self.output_file_name = output_file_name self.loop = loop self.blob_manager = blob_manager diff --git a/lbrynet/stream/stream_manager.py b/lbrynet/stream/stream_manager.py index 01f3459ba..9010f7315 100644 --- a/lbrynet/stream/stream_manager.py +++ b/lbrynet/stream/stream_manager.py @@ -157,7 +157,7 @@ class StreamManager: async def resume(self): if self.node: - await self.node.joined.wait() + await self.node.joined.wait() else: log.warning("no DHT node given, resuming downloads trusting that we can contact reflector") t = [