forked from platformio/platformio-core
Black formatting
This commit is contained in:
@ -72,7 +72,9 @@ class FileDownloader:
|
|||||||
def start(self, with_progress=True, silent=False):
|
def start(self, with_progress=True, silent=False):
|
||||||
label = "Downloading"
|
label = "Downloading"
|
||||||
file_size = self.get_size()
|
file_size = self.get_size()
|
||||||
itercontent = self._http_response.iter_content(chunk_size=io.DEFAULT_BUFFER_SIZE)
|
itercontent = self._http_response.iter_content(
|
||||||
|
chunk_size=io.DEFAULT_BUFFER_SIZE
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
with open(self._destination, "wb") as fp:
|
with open(self._destination, "wb") as fp:
|
||||||
if file_size == -1 or not with_progress or silent:
|
if file_size == -1 or not with_progress or silent:
|
||||||
|
Reference in New Issue
Block a user