[python-ldap] syncrepl fix for pyasn1 >= 0.3

Christian Heimes christian at python.org
Tue Nov 7 07:55:16 EST 2017


On 2017-11-07 13:53, Michael Ströder wrote:
> Christian Heimes wrote:
>> syncrepl does no longer work with pyasn1 >= 0.3. pyasn1 changed its API
>> a bit. Ilya, the author and maintainer of pyasn1, has provided a fix for
>> Python 3 port of python-ldap. I have attached his original patch and a
>> backport to python-ldap.
>>
>> Patch source: https://github.com/pyldap/pyldap/pull/126
> 
> Many thanks for your contribution.
> 
> Is this code still compatible with pyasn1 < 0.3?

According to Ilya, the code is compatible with any reasonable recent
version of pyasn1 0.2, too. All checks first do 'value is None' for
pyasn1, then 'not value.hasValue()'.

Christian


More information about the python-ldap mailing list