equal
deleted
inserted
replaced
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 |