Using Python collections.abc instead of collections (deprecated).

This commit is contained in:
Jean-Paul Chaput 2023-09-29 03:02:22 +02:00
parent 151ee6fd82
commit b3d5c56965
1 changed files with 1 additions and 1 deletions

View File

@ -1452,7 +1452,7 @@ class BlockConf ( GaugeConf ):
for line in range(len(self.ioPadsArg)): for line in range(len(self.ioPadsArg)):
bits = [] bits = []
if not isinstance(self.ioPadsArg[line][-1],str) \ if not isinstance(self.ioPadsArg[line][-1],str) \
and isinstance(self.ioPadsArg[line][-1],collections.Iterable): and isinstance(self.ioPadsArg[line][-1],collections.abc.Iterable):
bits = self.ioPadsArg[line][-1] bits = self.ioPadsArg[line][-1]
elif isinstance(self.ioPadsArg[line][-1],int): elif isinstance(self.ioPadsArg[line][-1],int):
bits = range( self.ioPadsArg[line][-1] ) bits = range( self.ioPadsArg[line][-1] )