From 2d0faa1d54b4f38befacc300d44b633ecd539042 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 16 Oct 2010 17:42:01 +0200 Subject: [PATCH] =?UTF-8?q?[attributs]=20Retourne=20=5F=5Fstr=5F=5F=20plut?= =?UTF-8?q?=C3=B4t=20que=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 08c9c5f..467b5ca 100644 --- a/attributs.py +++ b/attributs.py @@ -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: