| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2011 The Native Client 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 # | 6 # |
| 7 | 7 |
| 8 """A tiny web server. | 8 """A tiny web server. |
| 9 | 9 |
| 10 This is intended to be used for testing. | 10 This is intended to be used for testing. |
| 11 """ | 11 """ |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 | 166 |
| 167 if __name__ == '__main__': | 167 if __name__ == '__main__': |
| 168 os.chdir('out') | 168 os.chdir('out') |
| 169 SanityCheckDirectory() | 169 SanityCheckDirectory() |
| 170 if len(sys.argv) > 1: | 170 if len(sys.argv) > 1: |
| 171 Run((SERVER_HOST, int(sys.argv[1]))) | 171 Run((SERVER_HOST, int(sys.argv[1]))) |
| 172 else: | 172 else: |
| 173 Run((SERVER_HOST, SERVER_PORT)) | 173 Run((SERVER_HOST, SERVER_PORT)) |
| 174 sys.exit(0) | 174 sys.exit(0) |
| OLD | NEW |