pefile icon indicating copy to clipboard operation
pefile copied to clipboard

Fix format typo in Structure.dump()

Open laomaiweng opened this issue 4 years ago • 1 comments

'{#:8X}'.format(val) yields a KeyError exception complaining about the #.

Alternate-form # format specifier should come after the colon, so this PR fixes this which seems to be a mere typo.

laomaiweng avatar Aug 21 '19 09:08 laomaiweng

I suggest changing "8" to "10" in that one line, since the prefix (0X) will use two characters. That would also makes it align better in the output.

malwarefrank avatar Sep 11 '19 02:09 malwarefrank