diff --git a/aws-iot-device-sdk-python-v2-main/awsiot/greengrasscoreipc/model.py b/aws-iot-device-sdk-python-v2-main/awsiot/greengrasscoreipc/model.py index bc37669..51f635f 100644 --- a/aws-iot-device-sdk-python-v2-main/awsiot/greengrasscoreipc/model.py +++ b/aws-iot-device-sdk-python-v2-main/awsiot/greengrasscoreipc/model.py @@ -843,10 +843,7 @@ def _model_name(cls): return 'aws.greengrass#PublishMessage' def __repr__(self): - attrs = [] - for attr, val in self.__dict__.items(): - if val is not None: - attrs.append('%s=%r' % (attr, val)) + attrs = ['%s=%r' % (attr, val) if val is not None for attr, val in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(attrs)) def __eq__(self, other):