<s> """<STR_LIT>""" <EOL> __version__ = '<STR_LIT>' <EOL> import sys <EOL> if __debug__ : <EOL> import traceback <EOL> _trace_level = <NUM_LIT:0> <EOL> _trace_file = sys . stderr <EOL> _trace_stack_limit = None <EOL> from _ldap import * <EOL> class DummyLock : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> pass <EOL> def acquire ( self ) : <EOL> pass <EOL> def release ( self ) : <EOL> pass <EOL> try : <EOL> import thread <EOL> except ImportError : <EOL> LDAPLockBaseClass = DummyLock <EOL> else : <EOL> import threading <EOL> LDAPLockBaseClass = threading . Lock <EOL> class LDAPLock : <EOL> """<STR_LIT>""" <EOL> _min_trace_level = <NUM_LIT:2> <EOL> def __init__ ( self , lock_class = None , desc = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> self . _desc = desc <EOL> self . _lock = ( lock_class or LDAPLockBaseClass ) ( ) <EOL> def acquire ( self ) : <EOL> if __debug__ : <EOL> if _trace_level >= self . _min_trace_level : <EOL> _trace_file . write ( '<STR_LIT>' % ( self . _desc , self . __class__ . __name__ ) ) <EOL> return self . _lock . acquire ( ) <EOL> def release ( self ) : <EOL> if __debug__ : <EOL> if _trace_level >= self . _min_trace_level : <EOL> _trace_file . write ( '<STR_LIT>' % ( self . _desc , self . __class__ . __name__ ) ) <EOL> return self . _lock . release ( ) <EOL> _ldap_module_lock = LDAPLock ( desc = '<STR_LIT>' ) <EOL> from functions import open , initialize , init , get_option , set_option <EOL> from ldap . dn import explode_dn , explode_rdn , str2dn , dn2str <EOL> del str2dn <EOL> del dn2str <EOL> OPT_DIAGNOSTIC_MESSAGE = OPT_ERROR_STRING </s>
