Skip to content

Commit 2924448

Browse files
j-t-1nightlark
andauthored
Use an f-string
Co-authored-by: Ryan Mast <3969255+nightlark@users.noreply.github.com>
1 parent eb29874 commit 2924448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __generate_signature(
127127

128128
data = pe.__data__[offset : offset + sig_length]
129129

130-
signature_bytes = " ".join("%02x" % ord(c) for c in data)
130+
signature_bytes = " ".join(f"{ord(c):02x}" for c in data)
131131

132132
if ep_only == True:
133133
ep_only = "true"

0 commit comments

Comments
 (0)