|
@@ -2,19 +2,11 @@ import grp
|
|
|
import os
|
|
|
import pwd
|
|
|
import signal
|
|
|
-import sys
|
|
|
import socket
|
|
|
import shlex
|
|
|
import urlparse
|
|
|
from supervisor.loggers import getLevelNumByDescription
|
|
|
|
|
|
-# I dont know why we bother, this doesn't run on Windows, but just
|
|
|
-# in case it ever does, avoid this bug magnet by leaving it.
|
|
|
-if sys.platform[:3] == "win": # pragma: no cover
|
|
|
- DEFAULT_HOST = "localhost"
|
|
|
-else:
|
|
|
- DEFAULT_HOST = ""
|
|
|
-
|
|
|
here = None
|
|
|
|
|
|
def set_here(v):
|
|
@@ -150,7 +142,7 @@ def inet_address(s):
|
|
|
except ValueError:
|
|
|
raise ValueError("not a valid port number: %r " %s)
|
|
|
if not host or host == '*':
|
|
|
- host = DEFAULT_HOST
|
|
|
+ host = ''
|
|
|
return host, port
|
|
|
|
|
|
class SocketAddress:
|