2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

stream.py: Make usage() function return a string.

This will marginally simplify a future patch.
This commit is contained in:
Ethan Jackson
2011-09-26 16:02:14 -07:00
parent 8ed182d80e
commit ec394dad53
2 changed files with 7 additions and 11 deletions

View File

@@ -302,14 +302,10 @@ class PassiveStream(object):
self.socket.close()
def usage(name, active, passive):
print
if active:
print("Active %s connection methods:" % name)
print(" unix:FILE "
"Unix domain socket named FILE")
def usage(name):
return """
Active %s connection methods:
unix:FILE Unix domain socket named FILE
if passive:
print("Passive %s connection methods:" % name)
print(" punix:FILE "
"listen on Unix domain socket FILE")
Passive %s connection methods:
punix:FILE Listen on Unix domain socket FILE""" % (name, name)