def __repr__(self):
        nice_name = self.short_description()

        repr_string = AzureusObject.__repr__(self)
        if nice_name:
            if repr_string[-1:] == ">":
                repr_string = repr_string[:-1] + \
                              ', for "%s">' % nice_name
        return repr_string
Exemple #2
0
    def __repr__(self):
        nice_name = self.short_description()

        repr_string = AzureusObject.__repr__(self)
        if nice_name:
            if repr_string[-1:] == ">":
                repr_string = repr_string[:-1] + \
                    ', for "%s">' % nice_name
        return repr_string