[python-ldap] SyncreplConsumer running in parallel with other application
Michael Ströder
michael at stroeder.com
Mon Jan 11 08:51:42 EST 2016
Michael Ströder wrote:
> David Gabriel wrote:
>> Thanks Michael.
>> Kindly find attached my source code.
>
> This results in:
>
> python -tt tmp/syncrepl3.py 'ldapi://dc=stroeder,dc=de'
> File "tmp/syncrepl3.py", line 58
> previous_attributes = dict()
> ^
> TabError: inconsistent use of tabs and spaces in indentation
>
> Don't use tabs (see PEP-8).
And opening LDAP connection in the while-loop (line 138) looks also bogus.
Ciao, Michael.
More information about the python-ldap
mailing list