old_contents: # coding: utf-8
  
  import tornado.web
  from django.db import connections
  from greentor import green
  
  
  class BaseRequestHandler(tornado.web.RequestHandler):
      def on_finish(self):
          connections.close_all()
  
  
  BaseRequestHandler._execute = green.green(BaseRequestHandler._execute)
  
new_contents: # coding: utf-8
  
  import tornado.web
  from django.db import connections
  from greentor import green
  
  
  class BaseRequestHandler(tornado.web.RequestHandler):
      def on_finish(self):
          connections.close_all()
  
      @green.green
      def _execute(self, *args, **kwargs):
          return super(BaseRequestHandler, self)._execute(*args, **kwargs)
  
subject: 修改RequestHandler _execute方法