update to py tests and scripts due to black 22.1.0
This commit is contained in:
parent
a88969d306
commit
748834c6ba
@ -22,7 +22,7 @@ print(sha1.digest())
|
|||||||
|
|
||||||
sha1 = hashlib.sha1(b"hello")
|
sha1 = hashlib.sha1(b"hello")
|
||||||
try:
|
try:
|
||||||
sha1.update(u"world")
|
sha1.update("world")
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
print("TypeError")
|
print("TypeError")
|
||||||
print(sha1.digest())
|
print(sha1.digest())
|
||||||
|
@ -28,7 +28,7 @@ print(hashlib.sha256(b"\xff" * 56).digest())
|
|||||||
|
|
||||||
sha256 = hashlib.sha256(b"hello")
|
sha256 = hashlib.sha256(b"hello")
|
||||||
try:
|
try:
|
||||||
sha256.update(u"world")
|
sha256.update("world")
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
print("TypeError")
|
print("TypeError")
|
||||||
print(sha256.digest())
|
print(sha256.digest())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user