By convention, unused arguments should be named "_" and top level
definitions should be separated by two spaces.
import ovs.daemon
import ovs.util
import ovs.daemon
import ovs.util
-def handler(signum, frame):
+
+def handler(signum, _):
raise Exception("Signal handler called with %d" % signum)
raise Exception("Signal handler called with %d" % signum)
def main(argv):
logging.basicConfig(level=logging.DEBUG)
def main(argv):
logging.basicConfig(level=logging.DEBUG)
while True:
time.sleep(1)
while True:
time.sleep(1)
def usage():
sys.stdout.write("""\
%s: Open vSwitch daemonization test program for Python
def usage():
sys.stdout.write("""\
%s: Open vSwitch daemonization test program for Python