mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 02:42:56 +00:00 
			
		
		
		
	Use IOLoop.current() instead of deprecated instance()
This commit is contained in:
		@@ -34,4 +34,4 @@ if __name__ == '__main__':
 | 
				
			|||||||
    application.listen(os.environ['CONTROLLER_PORT'])
 | 
					    application.listen(os.environ['CONTROLLER_PORT'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    setup_signal_handlers()
 | 
					    setup_signal_handlers()
 | 
				
			||||||
    IOLoop.instance().start()
 | 
					    IOLoop.current().start()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -87,7 +87,7 @@ def main():
 | 
				
			|||||||
    ))
 | 
					    ))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    setup_signal_handlers()
 | 
					    setup_signal_handlers()
 | 
				
			||||||
    IOLoop.instance().start()
 | 
					    IOLoop.current().start()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,7 +26,7 @@ def main():
 | 
				
			|||||||
    ))
 | 
					    ))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    setup_signal_handlers()
 | 
					    setup_signal_handlers()
 | 
				
			||||||
    IOLoop.instance().start()
 | 
					    IOLoop.current().start()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user