Jelajahi Sumber

get rid of this insane cruft

Chris McDonough 10 tahun lalu
induk
melakukan
2beac7539c
1 mengubah file dengan 1 tambahan dan 9 penghapusan
  1. 1 9
      supervisor/datatypes.py

+ 1 - 9
supervisor/datatypes.py

@@ -2,7 +2,6 @@ import grp
 import os
 import pwd
 import signal
-import sys
 import supervisor.medusa.text_socket as socket
 import shlex
 
@@ -10,13 +9,6 @@ from supervisor.compat import urlparse
 from supervisor.compat import long
 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):
@@ -151,7 +143,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: