1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

scanner.py: skip format on hex literal

This commit is contained in:
linsui 2024-08-31 01:47:26 +08:00
parent 65f768e1cf
commit 8884732114

View File

@ -664,7 +664,7 @@ def scan_source(build_dir, build=metadata.Build(), json_per_build=None):
def is_executable(path): def is_executable(path):
return os.path.exists(path) and os.access(path, os.X_OK) return os.path.exists(path) and os.access(path, os.X_OK)
textchars = bytearray({7, 8, 9, 10, 12, 13, 27} | set(range(0x20, 0x100)) - {0x7F}) textchars = bytearray({7, 8, 9, 10, 12, 13, 27} | set(range(0x20, 0x100)) - {0x7f}) # fmt: skip
def is_binary(path): def is_binary(path):
d = None d = None