In block.iospecs.py, no more need to translate into UTF-8 in Python3.
This commit is contained in:
parent
d288ca4d09
commit
36ce36f582
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue