From: Ben Pfaff Date: Tue, 23 Aug 2011 18:16:27 +0000 (-0700) Subject: ovs.stream: Drop Stream.get_name() since clients can use 'name' directly. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63b1a5213331cd962be05df57f1375db902216c5;p=openvswitch ovs.stream: Drop Stream.get_name() since clients can use 'name' directly. Suggested-by: Reid Price --- diff --git a/python/ovs/jsonrpc.py b/python/ovs/jsonrpc.py index 1cc7fb7d..da7fa084 100644 --- a/python/ovs/jsonrpc.py +++ b/python/ovs/jsonrpc.py @@ -174,7 +174,7 @@ class Message(object): class Connection(object): def __init__(self, stream): - self.name = stream.get_name() + self.name = stream.name self.stream = stream self.status = 0 self.input = "" diff --git a/python/ovs/stream.py b/python/ovs/stream.py index 20cd7fe2..5954c314 100644 --- a/python/ovs/stream.py +++ b/python/ovs/stream.py @@ -220,9 +220,6 @@ class Stream(object): def send_wait(self, poller): self.wait(poller, Stream.W_SEND) - def get_name(self): - return self.name - def __del__(self): # Don't delete the file: we might have forked. self.socket.close()