pvl/socket.py
changeset 132 a54950a8e4ec
parent 120 d342506c3ef3
child 139 515b74c6b456
equal deleted inserted replaced
131:aa12f64f8976 132:a54950a8e4ec
   143     if scheme :
   143     if scheme :
   144         return "{scheme}://{host}:{port}".format(scheme=scheme, host=host, port=port)
   144         return "{scheme}://{host}:{port}".format(scheme=scheme, host=host, port=port)
   145     else :
   145     else :
   146         return "{host}:{port}".format(host=host, port=port)
   146         return "{host}:{port}".format(host=host, port=port)
   147 
   147 
       
   148 # XXX: SIGPIPE
   148 def nonblocking (call, *args, **kwargs) :
   149 def nonblocking (call, *args, **kwargs) :
   149     """
   150     """
   150         Call the given function, which read/writes on a nonblocking file, and return None if it would have blocked.
   151         Call the given function, which read/writes on a nonblocking file, and return None if it would have blocked.
   151     """
   152     """
   152 
   153