[attributs] Retourne __str__ plutôt que None
This commit is contained in:
parent
8b51cf197a
commit
2d0faa1d54
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class Attr(object):
|
|||
self.value = val
|
||||
|
||||
def __str__(self):
|
||||
unicode.encode(unicode(self), 'utf-8')
|
||||
return unicode(self).encode('utf-8')
|
||||
|
||||
def validate(self, ldif):
|
||||
"""validates:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue