Convert more format() uses to f-strings.

This commit is contained in:
Jennifer Taylor
2020-03-25 23:17:06 +00:00
parent 509cb4f0d9
commit 9c85759dc6
6 changed files with 9 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ def parse_struct(data: bytes, startaddr: str, endaddr: str, fmt: str) -> None:
if offset >= start and offset < end:
return (offset - start) + section.PointerToRawData
raise Exception('Couldn\'t find raw offset for virtual offset 0x{:08x}'.format(offset))
raise Exception(f'Couldn\'t find raw offset for virtual offset 0x{offset:08x}')
if start >= pe.OPTIONAL_HEADER.ImageBase:
# Assume this is virtual