test: Enable ruff E713 lint

This commit is contained in:
MarcoFalke
2025-12-26 08:20:46 +01:00
parent 315fdb4066
commit fab300b378
10 changed files with 18 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ def descsum_expand(s):
groups = []
symbols = []
for c in s:
if not c in INPUT_CHARSET:
if c not in INPUT_CHARSET:
return None
v = INPUT_CHARSET.find(c)
symbols.append(v & 31)
@@ -47,7 +47,7 @@ def descsum_create(s):
def descsum_check(s, require=True):
"""Verify that the checksum is correct in a descriptor"""
if not '#' in s:
if '#' not in s:
return not require
if s[-9] != '#':
return False