bitmap
bitmap copied to clipboard
fromhexstring() needs integer division.
Calling str(len(hexstring) / 4) in the second argument of format() causes an error as "Precision not allowed in integer format specifier" (VS error message). Float division returns a float value which format() can't use.
Possible fixes:
- str(len(hexstring) // 4)
- str(int(len(hexstring)) / 4)