Skip to content

Commit

Permalink
Remove walrus operator
Browse files Browse the repository at this point in the history
  • Loading branch information
CPBridge authored Oct 19, 2024
1 parent 89be008 commit f0b58c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dicomweb_client/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,10 @@ def _decode_multipart_message(
data += chunk

prev_part_index = 0
while (
delimiter_index := data.find(delimiter, prev_part_index)
) >= 0:
while True:
delimiter_index = data.find(delimiter, prev_part_index)
if delimiter_index < 0:
break
logger.debug(f'decode message part #{j}')
content = self._extract_part_content(
data[prev_part_index:delimiter_index]
Expand Down

0 comments on commit f0b58c1

Please sign in to comment.