OLD | NEW |
1 # Copyright 2012 The LUCI Authors. All rights reserved. | 1 # Copyright 2012 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 """This module defines Isolate Server backend url handlers.""" | 5 """This module defines Isolate Server backend url handlers.""" |
6 | 6 |
7 import binascii | 7 import binascii |
8 import hashlib | 8 import hashlib |
9 import logging | 9 import logging |
10 import time | 10 import time |
11 import zlib | 11 import zlib |
12 | 12 |
13 import webapp2 | 13 import webapp2 |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 | 490 |
491 | 491 |
492 def create_application(debug): | 492 def create_application(debug): |
493 """Creates the url router for the backend. | 493 """Creates the url router for the backend. |
494 | 494 |
495 The backend only implements urls under /internal/. | 495 The backend only implements urls under /internal/. |
496 """ | 496 """ |
497 # Necessary due to email sent by cron job. | 497 # Necessary due to email sent by cron job. |
498 template.bootstrap() | 498 template.bootstrap() |
499 return webapp2.WSGIApplication(get_routes(), debug=debug) | 499 return webapp2.WSGIApplication(get_routes(), debug=debug) |
OLD | NEW |