--- a/pvl/socket.py Fri Sep 20 14:45:50 2013 +0300
+++ b/pvl/socket.py Fri Sep 20 15:05:28 2013 +0300
@@ -12,6 +12,8 @@
import urlparse
import logging; log = logging.getLogger('pvl.socket')
+from socket import SOCK_STREAM
+
def parse (url, port=None) :
"""
Parse given string into host, port, path parts.
@@ -58,7 +60,7 @@
family = socket.AF_UNIX
if family == socket.AF_UNIX :
- raise ValueError("TODO: AF_UNIX is not yet supported", str)
+ raise ValueError("TODO: AF_UNIX is not yet supported: %s" % (url, ))
else : # AF_UNSPEC or AF_INET/AF_INET6
return connect_inet(socktype, host, port, family=family)