Commit 4bc0c6fb authored by Dan Pascu's avatar Dan Pascu

Removed __str__ from Contact and ContactGroup

parent bb6ad786
......@@ -3,8 +3,6 @@
__all__ = ['Contact', 'ContactGroup', 'ContactDelegate', 'ContactModel', 'ContactSearchModel']
import sys
from PyQt4.QtCore import Qt, QAbstractListModel, QModelIndex, QSize
from PyQt4.QtGui import QColor, QPainter, QPalette, QPixmap, QStyle, QSortFilterProxyModel, QStyledItemDelegate
......@@ -34,9 +32,6 @@ class ContactGroup(object):
def __repr__(self):
return "%s(%r)" % (self.__class__.__name__, self.name)
def __str__(self):
return self.name.encode(sys.stdout.encoding)
def __unicode__(self):
return self.name
......@@ -92,9 +87,6 @@ class Contact(object):
def __repr__(self):
return '%s(%r, %r, %r, %r)' % (self.__class__.__name__, self.group, self.name, self.uri, self.image)
def __str__(self):
return unicode(self).encode(sys.stdout.encoding)
def __unicode__(self):
return u'%s <%s>' % (self.name, self.uri) if self.name else self.uri
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment