| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2010 Google Inc. | 3 # Copyright 2010 Google Inc. |
| 4 # | 4 # |
| 5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
| 7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
| 8 # | 8 # |
| 9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 # | 10 # |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 self.response.out.write( | 42 self.response.out.write( |
| 43 '<b>Failure: status=%d, code=%s, reason=%s.</b>' % | 43 '<b>Failure: status=%d, code=%s, reason=%s.</b>' % |
| 44 (e.status, e.code, e.reason)) | 44 (e.status, e.code, e.reason)) |
| 45 | 45 |
| 46 def main(): | 46 def main(): |
| 47 application = webapp.WSGIApplication([('/', MainPage)], debug=True) | 47 application = webapp.WSGIApplication([('/', MainPage)], debug=True) |
| 48 run_wsgi_app(application) | 48 run_wsgi_app(application) |
| 49 | 49 |
| 50 if __name__ == "__main__": | 50 if __name__ == "__main__": |
| 51 main() | 51 main() |
| OLD | NEW |