[attributs, lc_ldap] unicode(x) -> x.__unicode__()

This commit is contained in:
Olivier Iffrig 2011-02-27 01:07:04 +01:00
parent f461764825
commit ba260bcb50
2 changed files with 3 additions and 3 deletions

View file

@ -329,9 +329,9 @@ class CransLdapObject(object):
def __getitem__(self, attr):
if self.mode in [ 'w', 'rw' ]:
return [ unicode(v) for v in self._modifs[attr] ]
return [ v.__unicode__() for v in self._modifs[attr] ]
else:
return [ unicode(v) for v in self.attrs[attr] ]
return [ v.__unicode__() for v in self.attrs[attr] ]
def __setitem__(self, attr, values):
if self.mode not in ['w', 'rw']: