mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
Fix a Python SyntaxWarning.
Using 'is' for literals is incorrect, and only should be done for singletons.
This commit is contained in:
committed by
Ron Evans
parent
7938740bf3
commit
7c5f943564
@@ -132,7 +132,7 @@ def readSVD(path, sourceURL):
|
||||
clusterPrefix = clusterName + '_'
|
||||
clusterOffset = int(getText(cluster.find('addressOffset')), 0)
|
||||
if cluster.find('dim') is None:
|
||||
if clusterOffset is 0:
|
||||
if clusterOffset == 0:
|
||||
# make this a separate peripheral
|
||||
cpRegisters = []
|
||||
for regEl in cluster.findall('register'):
|
||||
|
||||
Reference in New Issue
Block a user