def _PopConnection():
 assert (len(_thread_local.connection_stack) >= 2)
 return _thread_local.connection_stack.pop()

def _PopConnection ( ) : assert ( len ( _thread_local . connection_stack ) >= 2 ) return _thread_local . connection_stack . pop ( )
internal method to restores the previous connection .