Explorar o código

get rid of this insane cruft

Conflicts:
	supervisor/datatypes.py
Chris McDonough %!s(int64=10) %!d(string=hai) anos
pai
achega
8288b2b351
Modificáronse 1 ficheiros con 1 adicións e 9 borrados
  1. 1 9
      supervisor/datatypes.py

+ 1 - 9
supervisor/datatypes.py

@@ -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: