Skip to content

Commit

Permalink
Merge branch 'my_code_contributions'
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad-O committed Oct 18, 2023
2 parents 72ad056 + b342938 commit 1fa95fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def get_block(s, chunkSize, buffSize):
s.send(sndStr.encode())
response = s.recv(1024)
# New content....
fmtStr = '%df' % (chunkSize)
#fmtStr = '%df' % (chunkSize) # Old way of formatting
fmtStr = f"{chunkSize}f" # Use f-strings instead
altResp = struct.unpack(fmtStr, response[2:-1])
return altResp

Expand Down

0 comments on commit 1fa95fb

Please sign in to comment.