From 88697df427b6dbad5cced7e8c9f5f03364315d5a Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Wed, 26 Oct 2011 02:13:49 +0200 Subject: [PATCH] [lc_ldap.py] AttributeError: 'str' object has no attribute '__unicode__' --- lc_ldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lc_ldap.py b/lc_ldap.py index 7300baf..2480204 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -340,9 +340,9 @@ class CransLdapObject(object): def __getitem__(self, attr): if self.mode in [ 'w', 'rw' ]: - return [ v.__unicode__() for v in self._modifs[attr] ] + return [ v for v in self._modifs[attr] ] else: - return [ v.__unicode__() for v in self.attrs[attr] ] + return [ v for v in self.attrs[attr] ] def __setitem__(self, attr, values): if self.mode not in ['w', 'rw']: