From 7c5f943564405993c377dc88ecbad9e940c38d7a Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 27 Aug 2019 04:49:32 -0400 Subject: [PATCH] Fix a Python SyntaxWarning. Using 'is' for literals is incorrect, and only should be done for singletons. --- tools/gen-device-svd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gen-device-svd.py b/tools/gen-device-svd.py index 990b2080..ee0165ee 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'):