all: Fix Python comparison to None and True, and use "not in".

These are basic PEP8 recommendations.
This commit is contained in:
Christian Clauss
2023-03-08 16:17:54 +01:00
committed by Damien George
parent f3a596db7d
commit 4376c969f6
6 changed files with 12 additions and 12 deletions

View File

@@ -116,7 +116,7 @@ class PIOASMEmit:
if label is None:
label = 0
else:
if not label in self.labels:
if label not in self.labels:
raise PIOASMError("unknown label {}".format(label))
label = self.labels[label]
self.prog[_PROG_DATA].append(instr | label)