@@ -198,7 +198,7 @@ def _has_mpl_attrs_post_init(self):
198
198
# Wrap MPL error into the ESDK error type
199
199
# so customers only have to catch ESDK error types.
200
200
raise AWSEncryptionSDKClientError (mpl_exception )
201
-
201
+
202
202
# If the provided materials_manager is directly from the MPL, wrap it in a native interface
203
203
# for internal use.
204
204
elif (self .materials_manager is not None
@@ -673,9 +673,10 @@ def _write_header(self):
673
673
# If there is _required_encryption_context,
674
674
# serialize it, then authenticate it
675
675
if hasattr (self , "_required_encryption_context" ):
676
- required_ec_serialized = aws_encryption_sdk .internal .formatting .encryption_context .serialize_encryption_context (
677
- self ._required_encryption_context
678
- )
676
+ required_ec_serialized = \
677
+ aws_encryption_sdk .internal .formatting .encryption_context .serialize_encryption_context (
678
+ self ._required_encryption_context
679
+ )
679
680
self .output_buffer += serialize_header_auth (
680
681
version = self ._header .version ,
681
682
algorithm = self ._encryption_materials .algorithm ,
@@ -955,7 +956,7 @@ def _prep_message(self):
955
956
self ._prep_non_framed ()
956
957
self ._message_prepped = True
957
958
958
- def _read_header (self ):
959
+ def _read_header (self ): # noqa: C901
959
960
"""Reads the message header from the input stream.
960
961
961
962
:returns: tuple containing deserialized header and header_auth objects
@@ -1056,9 +1057,10 @@ def _read_header(self):
1056
1057
# The authenticated only encryption context is all encryption context key-value pairs where the
1057
1058
# key exists in Required Encryption Context Keys. It is then serialized according to the
1058
1059
# message header Key Value Pairs.
1059
- required_ec_serialized = aws_encryption_sdk .internal .formatting .encryption_context .serialize_encryption_context (
1060
- self ._required_encryption_context
1061
- )
1060
+ required_ec_serialized = \
1061
+ aws_encryption_sdk .internal .formatting .encryption_context .serialize_encryption_context (
1062
+ self ._required_encryption_context
1063
+ )
1062
1064
1063
1065
validate_header (
1064
1066
header = header ,
0 commit comments