Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_compose_info(self):
if not hasattr(self, '_compose_info'):
self._compose_info = composeinfo.Compose(None)
self._compose_info.id = self.compose_id
self._compose_info.date = self.compose_date
self._compose_info.respin = self.compose_respin
self._compose_info.type = self.compose_type.name
return self._compose_info