aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorElliott Sales de Andrade <[email protected]>2019-08-27 04:49:32 -0400
committerRon Evans <[email protected]>2019-08-27 14:17:17 +0200
commit7c5f943564405993c377dc88ecbad9e940c38d7a (patch)
treeaf3948ed05ad6a63119696fdb67c2da069b032d9 /tools
parent7938740bf3db8be02636561dd6e093ae7a54230a (diff)
downloadtinygo-7c5f943564405993c377dc88ecbad9e940c38d7a.tar.gz
tinygo-7c5f943564405993c377dc88ecbad9e940c38d7a.zip
Fix a Python SyntaxWarning.
Using 'is' for literals is incorrect, and only should be done for singletons.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen-device-svd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen-device-svd.py b/tools/gen-device-svd.py
index 990b2080d..ee0165ee7 100755
--- a/tools/gen-device-svd.py
+++ b/tools/gen-device-svd.py
@@ -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'):