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

Unified Diff: Tools/TestResultServer/handlers/testfilehandler.py

Issue 14562007: 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
Index: Tools/TestResultServer/handlers/testfilehandler.py
diff --git a/Tools/TestResultServer/handlers/testfilehandler.py b/Tools/TestResultServer/handlers/testfilehandler.py
index fd17202b4b025bda94a87d6288011e7321ed9e18..759d7d6ce050bbb91fbe8aad7e05f886732e636d 100644
--- a/Tools/TestResultServer/handlers/testfilehandler.py
+++ b/Tools/TestResultServer/handlers/testfilehandler.py
@@ -30,9 +30,9 @@ import time
import logging
import re
import urllib
+import webapp2
from google.appengine.api import users
-from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext import db
@@ -60,7 +60,7 @@ def _replace_jsonp_callback(json, callback_name):
return json
-class DeleteFile(webapp.RequestHandler):
+class DeleteFile(webapp2.RequestHandler):
"""Delete test file for a given builder and name from datastore."""
def get(self):
@@ -81,7 +81,7 @@ class DeleteFile(webapp.RequestHandler):
% (master, builder, test_type, name))
-class GetFile(webapp.RequestHandler):
+class GetFile(webapp2.RequestHandler):
"""Get file content or list of files for given builder and name."""
def _get_file_list(self, master, builder, test_type, name, callback_name=None):
@@ -210,7 +210,7 @@ class GetFile(webapp.RequestHandler):
self._serve_json(json, date)
-class Upload(webapp.RequestHandler):
+class Upload(webapp2.RequestHandler):
"""Upload test results file to datastore."""
def post(self):
@@ -268,7 +268,7 @@ class Upload(webapp.RequestHandler):
self.response.out.write("OK")
-class UploadForm(webapp.RequestHandler):
+class UploadForm(webapp2.RequestHandler):
"""Show a form so user can upload a file."""
def get(self):

Powered by Google App Engine
This is Rietveld 408576698