kallsyms.py: trivial refactor - use tuple instead of list (#3184)

pull/3187/head
Disconnect3d 5 months ago committed by GitHub
parent 2f19e96f49
commit 90aa3aa082
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -105,7 +105,7 @@ class Kallsyms:
0xffffffff827b2fed: "9" 0xffffffff827b2fed: "9"
""" """
sequence_to_find = b"".join(b"%c\0" % i for i in range(ord("0"), ord("9") + 1)) sequence_to_find = b"".join(b"%c\0" % i for i in range(ord("0"), ord("9") + 1))
sequences_to_avoid = [b":\0", b"\0\0", b"\0\1", b"\0\2", b"ASCII\0"] sequences_to_avoid = (b":\0", b"\0\0", b"\0\1", b"\0\2", b"ASCII\0")
position = 0 position = 0

Loading…
Cancel
Save