projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5faa98
)
tests: Cleanup test-daemon.py style.
author
Ethan Jackson
<ethan@nicira.com>
Fri, 16 Sep 2011 22:48:33 +0000
(15:48 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Fri, 16 Sep 2011 22:51:12 +0000
(15:51 -0700)
By convention, unused arguments should be named "_" and top level
definitions should be separated by two spaces.
tests/test-daemon.py
patch
|
blob
|
history
diff --git
a/tests/test-daemon.py
b/tests/test-daemon.py
index 350b8f7031d363ffdbf2a7d17d5b2505ae0dec42..816304fa075df1102630c347c8bb918763438532 100644
(file)
--- a/
tests/test-daemon.py
+++ b/
tests/test-daemon.py
@@
-21,9
+21,11
@@
import time
import ovs.daemon
import ovs.util
-def handler(signum, frame):
+
+def handler(signum, _):
raise Exception("Signal handler called with %d" % signum)
+
def main(argv):
logging.basicConfig(level=logging.DEBUG)
@@
-57,6
+59,7
@@
def main(argv):
while True:
time.sleep(1)
+
def usage():
sys.stdout.write("""\
%s: Open vSwitch daemonization test program for Python