Skip to content

Commit

Permalink
release 2.4.30 with compability fix for pyasn1 0.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Feb 8, 2017
1 parent 67e3157 commit ba46652
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
11 changes: 10 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
----------------------------------------------------------------
Released 2.4.30 2017-02-08

Changes since 2.4.29:

Lib/
* compability fix in ldap.controls.deref to be compatible to
recent pyasn1 0.2.x (thanks to Ilya Etingof)

----------------------------------------------------------------
Released 2.4.29 2017-01-25

Expand Down Expand Up @@ -1307,4 +1316,4 @@ Released 2.0.0pre02 2002-02-01
----------------------------------------------------------------
Released 1.10alpha3 2000-09-19

$Id: CHANGES,v 1.402 2017/01/25 19:43:39 stroeder Exp $
$Id: CHANGES,v 1.403 2017/02/08 09:44:18 stroeder Exp $
4 changes: 2 additions & 2 deletions Lib/dsml.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
See http://www.python-ldap.org/ for details.
$Id: dsml.py,v 1.46 2017/01/06 15:07:57 stroeder Exp $
$Id: dsml.py,v 1.47 2017/02/08 09:44:18 stroeder Exp $
Python compability note:
Tested with Python 2.0+.
"""

__version__ = '2.4.29'
__version__ = '2.4.30'

import string,base64

Expand Down
4 changes: 2 additions & 2 deletions Lib/ldap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
See http://www.python-ldap.org/ for details.
$Id: __init__.py,v 1.107 2017/01/06 15:07:57 stroeder Exp $
$Id: __init__.py,v 1.108 2017/02/08 09:44:18 stroeder Exp $
"""

# This is also the overall release version number

__version__ = '2.4.29'
__version__ = '2.4.30'

import sys

Expand Down
9 changes: 4 additions & 5 deletions Lib/ldap/controls/deref.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
See http://www.python-ldap.org/ for project details.
$Id: deref.py,v 1.2 2015/09/19 13:41:01 stroeder Exp $
$Id: deref.py,v 1.3 2017/02/08 09:44:18 stroeder Exp $
"""

__all__ = [
Expand Down Expand Up @@ -108,15 +108,14 @@ def decodeControlValue(self,encodedControlValue):
decodedValue,_ = decoder.decode(encodedControlValue,asn1Spec=DerefResultControlValue())
self.derefRes = {}
for deref_res in decodedValue:
deref_attr,deref_val,deref_vals = deref_res
deref_attr,deref_val,deref_vals = deref_res[0],deref_res[1],deref_res[2]
partial_attrs_dict = dict([
(str(t),map(str,v))
for t,v in deref_vals or []
(str(tv[0]),map(str,tv[1]))
for tv in deref_vals or []
])
try:
self.derefRes[str(deref_attr)].append((str(deref_val),partial_attrs_dict))
except KeyError:
self.derefRes[str(deref_attr)] = [(str(deref_val),partial_attrs_dict)]


KNOWN_RESPONSE_CONTROLS[DereferenceControl.controlType] = DereferenceControl
4 changes: 2 additions & 2 deletions Lib/ldapurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
See http://www.python-ldap.org/ for details.
\$Id: ldapurl.py,v 1.82 2017/01/06 15:07:57 stroeder Exp $
\$Id: ldapurl.py,v 1.83 2017/02/08 09:44:18 stroeder Exp $
Python compability note:
This module only works with Python 2.0+ since
1. string methods are used instead of module string and
2. list comprehensions are used.
"""

__version__ = '2.4.29'
__version__ = '2.4.30'

__all__ = [
# constants
Expand Down
4 changes: 2 additions & 2 deletions Lib/ldif.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
See http://www.python-ldap.org/ for details.
$Id: ldif.py,v 1.102 2017/01/06 15:07:57 stroeder Exp $
$Id: ldif.py,v 1.103 2017/02/08 09:44:18 stroeder Exp $
Python compability note:
Tested with Python 2.0+, but should work with Python 1.5.2+.
"""

__version__ = '2.4.29'
__version__ = '2.4.30'

__all__ = [
# constants
Expand Down

0 comments on commit ba46652

Please sign in to comment.