add __str__ methods
This commit is contained in:
parent
5243ca33fd
commit
ecf8077eb8
1 changed files with 6 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ __all__ = ['IBaseCap', 'NotLoaded', 'LoadingError']
|
||||||
|
|
||||||
|
|
||||||
class NotLoadedMeta(type):
|
class NotLoadedMeta(type):
|
||||||
|
def __str__(self):
|
||||||
|
return unicode(self).decode('utf-8')
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return u'Not loaded'
|
return u'Not loaded'
|
||||||
|
|
||||||
|
|
@ -29,6 +32,9 @@ class NotLoaded(object):
|
||||||
|
|
||||||
|
|
||||||
class LoadingErrorMeta(type):
|
class LoadingErrorMeta(type):
|
||||||
|
def __str__(self):
|
||||||
|
return unicode(self).decode('utf-8')
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return u'Loading error'
|
return u'Loading error'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue