@@ -856,18 +856,18 @@ def test_hybrid_decoding_with_blocked_format(self):
856856
857857 self .assertIn ("Invalid X9.62 encoding" , str (exp .exception ))
858858
859- def test_hybrid_decoding_with_inconsistent_encoding_and_no_validation (self ):
859+ def test_hybrid_decoding_with_inconsistent_encoding_and_no_validation (
860+ self ,
861+ ):
860862 sk = SigningKey .from_secret_exponent (123456789 )
861863 vk = sk .verifying_key
862864
863865 enc = vk .to_string ("hybrid" )
864- self .assertEqual (enc [:1 ], b' \x06 ' )
865- enc = b' \x07 ' + enc [1 :]
866+ self .assertEqual (enc [:1 ], b" \x06 " )
867+ enc = b" \x07 " + enc [1 :]
866868
867869 b = VerifyingKey .from_string (
868- enc ,
869- valid_encodings = ("hybrid" ,),
870- validate_point = False
870+ enc , valid_encodings = ("hybrid" ,), validate_point = False
871871 )
872872
873873 self .assertEqual (vk , b )
@@ -919,8 +919,8 @@ def test_decoding_with_inconsistent_hybrid_odd_point(self):
919919 vk = sk .verifying_key
920920
921921 enc = vk .to_string ("hybrid" )
922- self .assertEqual (enc [:1 ], b' \x07 ' )
923- enc = b' \x06 ' + enc [1 :]
922+ self .assertEqual (enc [:1 ], b" \x07 " )
923+ enc = b" \x06 " + enc [1 :]
924924
925925 with self .assertRaises (MalformedPointError ):
926926 b = VerifyingKey .from_string (enc , valid_encodings = ("hybrid" ,))
0 commit comments