Fix a Python SyntaxWarning.
Using 'is' for literals is incorrect, and only should be done for singletons.
Этот коммит содержится в:
родитель
7938740bf3
коммит
7c5f943564
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -132,7 +132,7 @@ def readSVD(path, sourceURL):
|
||||||
clusterPrefix = clusterName + '_'
|
clusterPrefix = clusterName + '_'
|
||||||
clusterOffset = int(getText(cluster.find('addressOffset')), 0)
|
clusterOffset = int(getText(cluster.find('addressOffset')), 0)
|
||||||
if cluster.find('dim') is None:
|
if cluster.find('dim') is None:
|
||||||
if clusterOffset is 0:
|
if clusterOffset == 0:
|
||||||
# make this a separate peripheral
|
# make this a separate peripheral
|
||||||
cpRegisters = []
|
cpRegisters = []
|
||||||
for regEl in cluster.findall('register'):
|
for regEl in cluster.findall('register'):
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче