Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias TryExcept body Import alias Import alias Import alias Import alias Import alias handlers ExceptHandler type NameLoad body Expr Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword NameLoad ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier Global identifier Global identifier Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore Str orelse If CompareEq NameLoad Str body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad keyword NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Global identifier Global identifier Global identifier Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareEq NameLoad Str body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body AugAssignSub NameStore Num orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num Num body Global identifier Global identifier Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore NameLoad Expr Call NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A sys N/A time N/A os N/A signal N/A logging clint.textui puts colored N/A N/A N/A tornado.httpserver N/A tornado.ioloop N/A tornado.web N/A tornado.options N/A tornado.websocket N/A N/A N/A ImportError N/A N/A N/A puts N/A N/A colored red Module tornado not found, use: pip install tornado N/A N/A N/A sys exit 1 N/A server None N/A countdown_time 300 N/A countdown_code 300 N/A countdown_state resume N/A ws_clients N/A N/A TEMPLATE_DIR N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ templates N/A STATIC_DIR N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ static N/A FORMAT [%(asctime)-15s] - %(message)s N/A N/A N/A logging basicConfig format FORMAT MainHandler N/A N/A N/A tornado web RequestHandler N/A get N/A N/A self N/A N/A N/A N/A N/A self render index.html N/A N/A WSHandler N/A N/A N/A tornado websocket WebSocketHandler N/A open N/A N/A self N/A N/A N/A N/A N/A logging info N/A N/A [ws] connected: {0} format N/A N/A self request remote_ip N/A N/A N/A ws_clients append self N/A on_message N/A N/A self message N/A N/A N/A countdown_state N/A countdown_code N/A countdown_time N/A N/A N/A logging info N/A N/A [ws] message received: {0} format message N/A N/A message resume_pause N/A N/A N/A countdown_state resume N/A N/A countdown_state pause N/A N/A N/A countdown_state pause N/A N/A countdown_state resume N/A N/A N/A self broadcast countdown_state N/A N/A N/A message restart N/A N/A countdown_code countdown_time N/A N/A N/A N/A self broadcast message N/A broadcast N/A N/A self message N/A N/A N/A ws_clients N/A socket ws_clients N/A N/A N/A N/A socket write_message message N/A on_close N/A N/A self N/A N/A N/A N/A N/A logging info N/A N/A [ws] disconnected: {0} format N/A N/A self request remote_ip N/A N/A N/A ws_clients remove self N/A N/A N/A application N/A N/A N/A tornado web Application N/A N/A / MainHandler N/A /ws WSHandler template_path TEMPLATE_DIR static_path STATIC_DIR debug True sig_handler N/A N/A sig frame N/A N/A N/A N/A N/A N/A N/A N/A N/A tornado ioloop IOLoop instance add_callback shutdown N/A shutdown N/A N/A N/A N/A N/A N/A N/A logging info Stopping http server N/A N/A N/A server stop N/A io_loop N/A N/A N/A N/A tornado ioloop IOLoop instance N/A N/A N/A io_loop stop N/A N/A N/A logging info Shutdown N/A countdown N/A N/A N/A N/A N/A countdown_code N/A countdown_time N/A ws_clients N/A ioloop N/A N/A N/A N/A tornado ioloop IOLoop current N/A N/A countdown_state resume N/A N/A ws_clients N/A N/A str_time N/A N/A time strftime %M:%S N/A N/A time gmtime countdown_code N/A s ws_clients N/A N/A N/A N/A s write_message str_time N/A countdown_code N/A N/A countdown_code 1 N/A N/A countdown_code countdown_time N/A N/A N/A ioloop add_timeout N/A N/A N/A time time 1 countdown N/A main N/A N/A port code_time N/A 2020 300 N/A N/A server N/A countdown_time N/A N/A N/A N/A tornado options parse_command_line N/A server N/A N/A N/A tornado httpserver HTTPServer application N/A N/A N/A server listen port N/A N/A N/A signal signal N/A signal SIGTERM sig_handler N/A N/A N/A signal signal N/A signal SIGINT sig_handler N/A N/A N/A logging info N/A Server runnig on port %d port N/A N/A N/A logging info N/A WebSocket: ws://localhost:%d/ws port N/A countdown_time code_time N/A N/A countdown N/A N/A N/A N/A N/A N/A N/A tornado ioloop IOLoop instance start N/A N/A N/A logging info Exit... N/A N/A N/A __name__ __main__ N/A N/A N/A main