mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +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:
@@ -174,7 +174,7 @@ class Message(object):
|
|||||||
|
|
||||||
class Connection(object):
|
class Connection(object):
|
||||||
def __init__(self, stream):
|
def __init__(self, stream):
|
||||||
self.name = stream.get_name()
|
self.name = stream.name
|
||||||
self.stream = stream
|
self.stream = stream
|
||||||
self.status = 0
|
self.status = 0
|
||||||
self.input = ""
|
self.input = ""
|
||||||
|
|||||||
@@ -220,9 +220,6 @@ class Stream(object):
|
|||||||
def send_wait(self, poller):
|
def send_wait(self, poller):
|
||||||
self.wait(poller, Stream.W_SEND)
|
self.wait(poller, Stream.W_SEND)
|
||||||
|
|
||||||
def get_name(self):
|
|
||||||
return self.name
|
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
# Don't delete the file: we might have forked.
|
# Don't delete the file: we might have forked.
|
||||||
self.socket.close()
|
self.socket.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user