You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what version of python is involved but the code which WAS previously working in vanguard brainwash to introspect available firmware versions but it is choking now on a 16.10 Ubuntu with Python 3.5.2.
It previously employed subscripts to get matching groups (as if a Match could be treated as an array). Something like...
Not sure what version of python is involved but the code which WAS previously working in
vanguard brainwash
to introspect available firmware versions but it is choking now on a 16.10 Ubuntu with Python 3.5.2.It previously employed subscripts to get matching groups (as if a Match could be treated as an array). Something like...
firmwares.append(FirmwareData(path=filePath, base=fileMatch[0], name=fileMatch[1], release=fileMatch[2]))
This caused an error like
TypeError: '_sre.SRE_Match' object is not subscriptable
To fix it I had to manually change a line to read, as follows, making an explicit call to the group method instead of using the subscript syntax...
firmwares.append(FirmwareData(path=filePath, base=fileMatch.group(0), name=fileMatch.group(1), release=fileMatch.group(2)))
The full working function looks like...
The text was updated successfully, but these errors were encountered: