Skip to content

Commit

Permalink
SimpleLDAPObject.unbind_ext() already removes class attribute _l => n…
Browse files Browse the repository at this point in the history
…o need to do it in ReconnectLDAPObject.reconnect()
  • Loading branch information
stroeder committed Mar 11, 2016
1 parent 12138d3 commit b8fb551
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/ldap/ldapobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See http://www.python-ldap.org/ for details.
\$Id: ldapobject.py,v 1.153 2016/01/28 09:43:08 stroeder Exp $
\$Id: ldapobject.py,v 1.154 2016/03/11 12:46:09 stroeder Exp $
Compability:
- Tested with Python 2.0+ but should work with Python 1.5.x
Expand Down Expand Up @@ -886,7 +886,6 @@ def reconnect(self,uri,retry_max=1,retry_delay=60.0):
self._trace_file.write('=> delay %s...\n' % (retry_delay))
time.sleep(retry_delay)
SimpleLDAPObject.unbind_s(self)
del self._l
else:
if __debug__ and self._trace_level>=1:
self._trace_file.write('*** %s reconnect to %s successful => repeat last operation\n' % (
Expand Down

0 comments on commit b8fb551

Please sign in to comment.