#NEWLINE# def stop( ) : #NEWLINE# #INDENT# 'Stops lazarus, regardless of which mode it was started in.\n\n    For example:\n\n        >>> import lazarus\n        >>> lazarus.default()\n        >>> lazarus.stop()\n    ' #NEWLINE# global _active #NEWLINE# if ( not _active ) : #NEWLINE# #INDENT# msg = 'lazarus is not active' #NEWLINE# raise RuntimeWarning ( _active ) #NEWLINE# #UNINDENT# _observer . stop ( ) #NEWLINE# _observer . join ( ) #NEWLINE# _deactivate ( )