From 91c637960c57f4b415213ea46c22fefcb2534825 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 23 Aug 2011 10:50:47 -0700 Subject: [PATCH] python: Avoid using 'tuple' as a variable name. 'tuple' is a Python built-in function, so it's best to avoid using it as a variable name. Suggested-by: Reid Price --- python/ovs/stream.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/ovs/stream.py b/python/ovs/stream.py index c1ce422f..16e383a0 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() -- 2.30.2