[Zodb-checkins] CVS: Packages/ZConfig - datatypes.py:1.10

Fred L. Drake, Jr. fred@zope.com
Tue, 18 Mar 2003 11:11:54 -0500


Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv15362

Modified Files:
	datatypes.py 
Log Message:
- try harder to do the right thing with path names as addresses on Windows
- normalize the imports


=== Packages/ZConfig/datatypes.py 1.9 => 1.10 ===
--- Packages/ZConfig/datatypes.py:1.9	Mon Jan 20 18:10:44 2003
+++ Packages/ZConfig/datatypes.py	Tue Mar 18 11:11:53 2003
@@ -13,9 +13,9 @@
 ##############################################################################
 """Selection of standard datatypes for ZConfig."""
 
+import os
 import re
 import sys
-import os
 
 try:
     True
@@ -157,7 +157,7 @@
     def __init__(self, s):
         # returns (family, address) tuple
         import socket
-        if "/" in s:
+        if "/" in s or s.find(os.sep) >= 0:
             self.family = getattr(socket, "AF_UNIX", None)
             self.address = s
         else: