2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

ovs.stream: Drop Stream.get_name() since clients can use 'name' directly.

Suggested-by: Reid Price <reid@nicira.com>
This commit is contained in:
Ben Pfaff
2011-08-23 11:16:27 -07:00
parent 1f9dd59cf1
commit 63b1a52133
2 changed files with 1 additions and 4 deletions

View File

@@ -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 = ""

View File

@@ -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()