| 3388 | quiet = True |
| 3389 | |
| 3390 | def run(self, handler): |
| 3391 | depr(0, 13, "AppEngineServer no longer required", |
| 3392 | "Configure your application directly in your app.yaml") |
| 3393 | from google.appengine.ext.webapp import util |
| 3394 | # A main() function in the handler script enables 'App Caching'. |
| 3395 | # Lets makes sure it is there. This _really_ improves performance. |
| 3396 | module = sys.modules.get('__main__') |
| 3397 | if module and not hasattr(module, 'main'): |
| 3398 | module.main = lambda: util.run_wsgi_app(handler) |
| 3399 | util.run_wsgi_app(handler) |
| 3400 | |
| 3401 | |
| 3402 | class TwistedServer(ServerAdapter): |