In block.iospecs.py, no more need to translate into UTF-8 in Python3.

This commit is contained in:
Jean-Paul Chaput 2021-10-02 00:59:17 +02:00
parent d288ca4d09
commit 36ce36f582
1 changed files with 3 additions and 2 deletions

View File

@ -130,8 +130,9 @@ class IoSpecs ( object ):
'JSON pinmux file not found.'
, '("{}")'.format(fileName) ] )
with open(fileName) as fd:
datas = utf8toStr( json.loads( fd.read(), object_hook=utf8toStr )
, ignoreDicts=True )
#datas = utf8toStr( json.loads( fd.read(), object_hook=utf8toStr )
# , ignoreDicts=True )
datas = json.loads( fd.read() )
self.addIoPadSpecs(datas['pads.east' ], IoPin.EAST )
self.addIoPadSpecs(datas['pads.west' ], IoPin.WEST )
self.addIoPadSpecs(datas['pads.north'], IoPin.NORTH )