| 3786 | quiet = True |
| 3787 | |
| 3788 | def run(self, handler): |
| 3789 | depr(0, 13, "AppEngineServer no longer required", |
| 3790 | "Configure your application directly in your app.yaml") |
| 3791 | from google.appengine.ext.webapp import util |
| 3792 | # A main() function in the handler script enables 'App Caching'. |
| 3793 | # Lets makes sure it is there. This _really_ improves performance. |
| 3794 | module = sys.modules.get('__main__') |
| 3795 | if module and not hasattr(module, 'main'): |
| 3796 | module.main = lambda: util.run_wsgi_app(handler) |
| 3797 | util.run_wsgi_app(handler) |
| 3798 | |
| 3799 | |
| 3800 | class TwistedServer(ServerAdapter): |