From 6bc49775e8e7adfcc72f003a47353f89dd941a20 Mon Sep 17 00:00:00 2001 From: stroeder Date: Mon, 18 Jan 2016 10:38:26 +0000 Subject: [PATCH] Real fix for attrlist=None regression introduced in 2.4.23 by ref count patch --- CHANGES | 4 ++-- Lib/ldap/ldapobject.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 198578a..b712599 100644 --- a/CHANGES +++ b/CHANGES @@ -4,7 +4,7 @@ Released 2.4.24 2016-01-18 Changes since 2.4.23: Lib/ -* Work-around for attrlist=None regression introduced in 2.4.23 +* Fix for attrlist=None regression introduced in 2.4.23 by ref count patch ---------------------------------------------------------------- @@ -1234,4 +1234,4 @@ Released 2.0.0pre02 2002-02-01 ---------------------------------------------------------------- Released 1.10alpha3 2000-09-19 -$Id: CHANGES,v 1.368 2016/01/17 20:31:54 stroeder Exp $ +$Id: CHANGES,v 1.369 2016/01/18 10:38:26 stroeder Exp $ diff --git a/Lib/ldap/ldapobject.py b/Lib/ldap/ldapobject.py index e8e0b5d..76b5c70 100644 --- a/Lib/ldap/ldapobject.py +++ b/Lib/ldap/ldapobject.py @@ -3,7 +3,7 @@ See http://www.python-ldap.org/ for details. -\$Id: ldapobject.py,v 1.150 2016/01/17 20:31:54 stroeder Exp $ +\$Id: ldapobject.py,v 1.151 2016/01/18 10:38:26 stroeder Exp $ Compability: - Tested with Python 2.0+ but should work with Python 1.5.x @@ -580,7 +580,7 @@ def search_ext(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrson return self._ldap_call( self._l.search_ext, base,scope,filterstr, - attrlist or [],attrsonly, + attrlist,attrsonly, RequestControlTuples(serverctrls), RequestControlTuples(clientctrls), timeout,sizelimit,