Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Jun 14, 2024
1 parent 540d3f3 commit 121cba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpie/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def get_content_length(response: niquests.Response) -> Optional[int]:
pass



def get_decodeable_content_encodings(encoded_response: niquests.Response) -> Optional[List[str]]:
content_encoding = encoded_response.headers.get('Content-Encoding')
if not content_encoding:
Expand Down Expand Up @@ -330,6 +329,7 @@ def _get_output_file_from_response(
unique_filename = get_unique_filename(filename)
return open(unique_filename, buffering=0, mode='a+b')


DECODED_FROM_SUFFIX = ' - decoded from {encodings}'
DECODED_SIZE_NOTE_SUFFIX = ' - decoded size'

Expand All @@ -347,7 +347,7 @@ def __init__(self, env):
self.time_finished = None
self.display = None

def started(self, output_file, resumed_from=0, total_size=None, decoded_from: List[str]=None):
def started(self, output_file, resumed_from=0, total_size=None, decoded_from: List[str] = None):
assert self.time_started is None
self.total_size = total_size
self.decoded_from = decoded_from
Expand Down

0 comments on commit 121cba1

Please sign in to comment.