From 50e97486ca7966922d1c2c29e84e08cbe5ac2140 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Fri, 16 Sep 2011 15:48:33 -0700 Subject: [PATCH] tests: Cleanup test-daemon.py style. By convention, unused arguments should be named "_" and top level definitions should be separated by two spaces. --- tests/test-daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test-daemon.py b/tests/test-daemon.py index 350b8f703..816304fa0 100644 --- 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 -- 2.43.0