Using 'is' for literals is incorrect, and only should be done for
singletons.
Этот коммит содержится в:
Elliott Sales de Andrade 2019-08-27 04:49:32 -04:00 коммит произвёл Ron Evans
родитель 7938740bf3
коммит 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'):