(self)
return status
Return display_status.
Return display_status.
Return display_status .
def display_status(self):
        """Return display_status."""
        if self.status.new:
            status = "new"
        elif self.pending_restart:
            status = "pending-restart"
        elif self.pending_upgrade:
            status = "pending-upgrade"
        elif self.status.installed:
            status = "installed"
        else:
            status = "default"
        return status
def display_status ( self ) : if self . status . new : status = "new" elif self . pending_restart : status = "pending-restart" elif self . pending_upgrade : status = "pending-upgrade" elif self . status . installed : status = "installed" else : status = "default" return status