mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
all: Fix Python comparison to None and True, and use "not in".
These are basic PEP8 recommendations.
This commit is contained in:
committed by
Damien George
parent
f3a596db7d
commit
4376c969f6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user