copy of NotLoaded and NotAvailable returns the same object
This commit is contained in:
parent
c4dfb49033
commit
892b3634a3
1 changed files with 12 additions and 0 deletions
|
|
@ -91,6 +91,12 @@ class NotAvailableType(object):
|
|||
def __str__(self):
|
||||
return unicode(self).decode('utf-8')
|
||||
|
||||
def __copy__(self):
|
||||
return self
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
return self
|
||||
|
||||
def __unicode__(self):
|
||||
return u'Not available'
|
||||
|
||||
|
|
@ -111,6 +117,12 @@ class NotLoadedType(object):
|
|||
def __str__(self):
|
||||
return unicode(self).decode('utf-8')
|
||||
|
||||
def __copy__(self):
|
||||
return self
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
return self
|
||||
|
||||
def __unicode__(self):
|
||||
return u'Not loaded'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue