| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """A class to help start/stop the PyWebSocket server used by layout tests.""" | 6 """A class to help start/stop the PyWebSocket server used by layout tests.""" |
| 7 | 7 |
| 8 | 8 |
| 9 import logging | 9 import logging |
| 10 import optparse | 10 import optparse |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 kwds['register_cygwin'] = options.register_cygwin | 241 kwds['register_cygwin'] = options.register_cygwin |
| 242 if options.pidfile: | 242 if options.pidfile: |
| 243 kwds['pidfile'] = options.pidfile | 243 kwds['pidfile'] = options.pidfile |
| 244 | 244 |
| 245 pywebsocket = PyWebSocket(tempfile.gettempdir(), **kwds) | 245 pywebsocket = PyWebSocket(tempfile.gettempdir(), **kwds) |
| 246 | 246 |
| 247 if 'start' == options.server: | 247 if 'start' == options.server: |
| 248 pywebsocket.Start() | 248 pywebsocket.Start() |
| 249 else: | 249 else: |
| 250 pywebsocket.Stop(force=True) | 250 pywebsocket.Stop(force=True) |
| OLD | NEW |