[Zope-Checkins] SVN: Zope/trunk/lib/python/ZServer/datatypes.py
added platform check to using os.name instead
Andreas Jung
andreas at andreas-jung.com
Fri Oct 15 09:30:22 EDT 2004
Log message for revision 28199:
added platform check to using os.name instead
of using sys.platform
Changed:
U Zope/trunk/lib/python/ZServer/datatypes.py
-=-
Modified: Zope/trunk/lib/python/ZServer/datatypes.py
===================================================================
--- Zope/trunk/lib/python/ZServer/datatypes.py 2004-10-15 12:52:23 UTC (rev 28198)
+++ Zope/trunk/lib/python/ZServer/datatypes.py 2004-10-15 13:30:21 UTC (rev 28199)
@@ -16,7 +16,7 @@
Each server type is represented by a ServerFactory instance.
"""
-import sys
+import os
import socket
import ZConfig
@@ -38,7 +38,7 @@
## AJ: We change 'localhost' to '' to force Medusa to use
## any network interface instead of using only 127.0.0.1. This is
## a not totally clean solution :-/ See also Collector #1507.
- if sys.platform != 'win32' and 'localhost' in hostname.lower():
+ if os.name == 'posix' and 'localhost' in hostname.lower():
hostname = ''
_default_host_info = hostname, ip
More information about the Zope-Checkins
mailing list