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

Unified Diff: sky/tools/skydb

Issue 692163002: Fix urls under /sky to work again (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« sky/tools/sky_server ('K') | « sky/tools/sky_server ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/skydb
diff --git a/sky/tools/skydb b/sky/tools/skydb
index a20b6ff1b6e929b18ce6510197765608ea30ec8f..d0340cdd089b05b24fcaed8867c74d1c8c6194f6 100755
--- a/sky/tools/skydb
+++ b/sky/tools/skydb
@@ -26,6 +26,9 @@ SUPPORTED_MIME_TYPES = [
]
class SkyDebugger(object):
+ def __init__(self):
+ self._sky_server = None
+
@staticmethod
def _port_in_use(port):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
@@ -46,7 +49,8 @@ class SkyDebugger(object):
if self._port_in_use(HTTP_PORT):
logging.warn(
- 'Port %s already in use, assuming custom sky_server started.')
+ 'Port %s already in use, assuming custom sky_server started.' %
+ HTTP_PORT)
else:
server_command = [
os.path.join(SKY_TOOLS_DIRECTORY, 'sky_server'),
« sky/tools/sky_server ('K') | « sky/tools/sky_server ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698