1
0

fix flake8-bugbear B016

B016 Cannot raise a literal. Did you intend to return it or raise an Exception?
This commit is contained in:
SomberNight
2023-04-23 01:50:43 +00:00
parent 8266ebcc46
commit 90315e72d6

View File

@@ -151,7 +151,7 @@ def RMD160Transform(state, block): #uint32 state[5], uchar block[64]
if sys.byteorder == 'little':
x = struct.unpack('<16L', bytes([x for x in block[0:64]]))
else:
raise "Error!!"
raise Exception(f"unsupported {sys.byteorder=!r}")
a = state[0]
b = state[1]
c = state[2]