Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: Tools/TestResultServer/main.py

Issue 14833004: Revert "Change TestResultServer to use python 2.7." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/TestResultServer/handlers/testfilehandler.py ('k') | Tools/TestResultServer/model/datastorefile.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/TestResultServer/main.py
diff --git a/Tools/TestResultServer/main.py b/Tools/TestResultServer/main.py
index 3bab07339bf2c144fd62d01129122af9feb24439..2fa61e5f3792fad811894148155f3822d59daa89 100644
--- a/Tools/TestResultServer/main.py
+++ b/Tools/TestResultServer/main.py
@@ -26,7 +26,12 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-import webapp2
+# Request a modern Django
+from google.appengine.dist import use_library
+use_library('django', '1.1')
+
+from google.appengine.ext import webapp
+from google.appengine.ext.webapp.util import run_wsgi_app
from handlers import menu
from handlers import testfilehandler
@@ -39,4 +44,11 @@ routes = [
('/*|/menu', menu.Menu),
]
-app = webapp2.WSGIApplication(routes, debug=True)
+application = webapp.WSGIApplication(routes, debug=True)
+
+
+def main():
+ run_wsgi_app(application)
+
+if __name__ == "__main__":
+ main()
« no previous file with comments | « Tools/TestResultServer/handlers/testfilehandler.py ('k') | Tools/TestResultServer/model/datastorefile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698