Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: mojo/devtools/common/devtoolslib/http_server.py

Issue 1128153002: Rename the devtools library: pylib -> devtoolslib. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address offline comments/ devtools_lib -> devtoolslib. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import atexit 5 import atexit
6 import datetime 6 import datetime
7 import email.utils 7 import email.utils
8 import hashlib 8 import hashlib
9 import logging 9 import logging
10 import math 10 import math
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 (system-allocated) port. Returns the server address. 131 (system-allocated) port. Returns the server address.
132 """ 132 """
133 assert path 133 assert path
134 httpd = _SilentTCPServer(('127.0.0.1', 0), _GetHandlerClassForPath(path)) 134 httpd = _SilentTCPServer(('127.0.0.1', 0), _GetHandlerClassForPath(path))
135 atexit.register(httpd.shutdown) 135 atexit.register(httpd.shutdown)
136 136
137 http_thread = threading.Thread(target=httpd.serve_forever) 137 http_thread = threading.Thread(target=httpd.serve_forever)
138 http_thread.daemon = True 138 http_thread.daemon = True
139 http_thread.start() 139 http_thread.start()
140 return httpd.server_address 140 return httpd.server_address
OLDNEW
« no previous file with comments | « mojo/devtools/common/devtoolslib/apptest_gtest_unittest.py ('k') | mojo/devtools/common/devtoolslib/linux_shell.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698