Skip to content

Commit

Permalink
SimpleLDAPObject.unbind_ext_s(): simplified and flush trace file
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Jul 17, 2016
1 parent 02d3119 commit 0def217
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 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.154 2016/03/11 12:46:09 stroeder Exp $
\$Id: ldapobject.py,v 1.155 2016/07/17 14:49:22 stroeder Exp $
Compability:
- Tested with Python 2.0+ but should work with Python 1.5.x
Expand Down Expand Up @@ -633,8 +633,11 @@ def unbind_ext(self,serverctrls=None,clientctrls=None):
def unbind_ext_s(self,serverctrls=None,clientctrls=None):
msgid = self.unbind_ext(serverctrls,clientctrls)
if msgid!=None:
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
return resp_type, resp_data, resp_msgid, resp_ctrls
result = self.result3(msgid,all=1,timeout=self.timeout)
else:
result = None
self._trace_file.flush()
return result

def unbind(self):
return self.unbind_ext(None,None)
Expand Down

0 comments on commit 0def217

Please sign in to comment.