| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 """Server for viewing the compiled C++ code from tools/json_schema_compiler. | 6 """Server for viewing the compiled C++ code from tools/json_schema_compiler. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 import cc_generator | 9 import cc_generator |
| 10 import code | 10 import code |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 highlighters['pygments'] = pygments_highlighter.PygmentsHighlighter() | 352 highlighters['pygments'] = pygments_highlighter.PygmentsHighlighter() |
| 353 except ImportError as e: | 353 except ImportError as e: |
| 354 pass | 354 pass |
| 355 | 355 |
| 356 server = PreviewHTTPServer(('', int(opts.port)), | 356 server = PreviewHTTPServer(('', int(opts.port)), |
| 357 CompilerHandler, | 357 CompilerHandler, |
| 358 highlighters) | 358 highlighters) |
| 359 server.serve_forever() | 359 server.serve_forever() |
| 360 except KeyboardInterrupt: | 360 except KeyboardInterrupt: |
| 361 server.socket.close() | 361 server.socket.close() |
| OLD | NEW |