ovs.stream: Drop Stream.get_name() since clients can use 'name' directly.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Aug 2011 18:16:27 +0000 (11:16 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 24 Aug 2011 19:06:53 +0000 (12:06 -0700)
Suggested-by: Reid Price <reid@nicira.com>
python/ovs/jsonrpc.py
python/ovs/stream.py

index 1cc7fb7de9f145f5f6ac4870eacf360759f630ee..da7fa084bd37524993ae3d596bc1c40c2d6a6b47 100644 (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 = ""
index 20cd7fe2487827ccbdc3cbf4c75ec007611dad7b..5954c3148a76768e02483b71d49b553e1dd70db3 100644 (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()