From 63b1a5213331cd962be05df57f1375db902216c5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 23 Aug 2011 11:16:27 -0700 Subject: [PATCH] ovs.stream: Drop Stream.get_name() since clients can use 'name' directly. Suggested-by: Reid Price --- python/ovs/jsonrpc.py | 2 +- python/ovs/stream.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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() -- 2.30.2