X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=python%2Fovs%2Fstream.py;h=16e383a0c7dc16e38103cdff0542b2dbf4c74a44;hb=91c637960c57f4b415213ea46c22fefcb2534825;hp=c1ce422fa43ca71a518a6272b93bdc327780ff95;hpb=8758e8a373338e409d7f2863ee91e01060f35628;p=sliver-openvswitch.git diff --git a/python/ovs/stream.py b/python/ovs/stream.py index c1ce422fa..16e383a0c 100644 --- a/python/ovs/stream.py +++ b/python/ovs/stream.py @@ -88,15 +88,14 @@ class Stream(object): return 0, Stream(sock, name, bind_path, status) @staticmethod - def open_block(tuple): + def open_block((error, stream)): """Blocks until a Stream completes its connection attempt, either - succeeding or failing. 'tuple' should be the tuple returned by + succeeding or failing. (error, stream) should be the tuple returned by Stream.open(). Returns a tuple of the same form. Typical usage: - error, stream = Stream.open_block(Stream.open("tcp:1.2.3.4:5"))""" + error, stream = Stream.open_block(Stream.open("unix:/tmp/socket"))""" - error, stream = tuple if not error: while True: error = stream.connect()