#NEWLINE# def shutdown( self , wait = True ) : #NEWLINE# #INDENT# 'This method should be called by user program to close the\n        http server.\n        ' #NEWLINE# if wait : #NEWLINE# #INDENT# logger . info ( ( 'HTTP server waiting for %s seconds for client updates before quitting' % self . _poll_sec ) ) #NEWLINE# time . sleep ( self . _poll_sec ) #NEWLINE# #UNINDENT# self . _server . shutdown ( ) #NEWLINE# self . _server . server_close ( )