[ldapsource] keep python 2.5 compatibility (closes #2541602) stable
authorDavid Douard <david.douard@logilab.fr>
Tue, 18 Dec 2012 11:40:51 +0100
branchstable
changeset 8636 c491f945f878
parent 8635 c261d9465e65
child 8638 9f95c2368b8b
[ldapsource] keep python 2.5 compatibility (closes #2541602)
server/sources/ldapuser.py
--- a/server/sources/ldapuser.py	Tue Dec 18 10:42:11 2012 +0100
+++ b/server/sources/ldapuser.py	Tue Dec 18 11:40:51 2012 +0100
@@ -19,7 +19,7 @@
 
 this source is for now limited to a read-only CWUser source
 """
-from __future__ import division
+from __future__ import division, with_statement
 from base64 import b64decode
 
 import ldap