treewide: fix various lint errors (MR 2197)

Fix errors found by new flake8 version
This commit is contained in:
Oliver Smith 2022-08-19 10:38:10 +02:00
parent 8d736c5fcc
commit c88a18d3f6
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 3 additions and 3 deletions

View file

@ -177,7 +177,7 @@ def get_token(previous, rest):
value = -1
# Get the next token (for non-leading zeros)
if(not len(rest)):
if not len(rest):
next = "end"
elif next == "invalid" and not invalid_suffix:
(next, rest) = next_token(previous, rest)