summaryrefslogtreecommitdiff
path: root/extras/appengine/main.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2015-10-26 19:51:54 +0100
committerAndi Albrecht <albrecht.andi@gmail.com>2015-10-26 19:51:54 +0100
commitdce6100348f92663f855b3c791031fd5a991844a (patch)
tree41d2d3824c9548ca58ba672cdadbba011f9fea83 /extras/appengine/main.py
parent4aff8c729adc8363ffd23b593b9d4b729487cde8 (diff)
downloadsqlparse-dce6100348f92663f855b3c791031fd5a991844a.tar.gz
Remove old Appengine application.
Diffstat (limited to 'extras/appengine/main.py')
-rw-r--r--extras/appengine/main.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/extras/appengine/main.py b/extras/appengine/main.py
deleted file mode 100644
index ae4d251..0000000
--- a/extras/appengine/main.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# SQLFormat's main script, dead simple :)
-
-import os
-import sys
-
-LIB_DIR = os.path.join(os.path.dirname(__file__), 'lib')
-
-if LIB_DIR not in sys.path:
- sys.path.insert(0, LIB_DIR)
-
-from sqlformat import app
-
-import config
-
-import logging
-from google.appengine.ext import ereporter
-
-ereporter.register_logger()
-
-
-class EreporterMiddleware(object):
-
- def __init__(self, app):
- self.app = app
-
- def __call__(self, environ, start_response):
- try:
- return self.app(environ, start_response)
- except:
- logging.exception('Exception in request:')
- logging.debug(environ)
- raise
-
-
-app.config.from_object(config)
-
-app = EreporterMiddleware(app)