From 5fca1d9e97913af549adaef0827b189540fc87fa Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 9 Jan 2013 16:00:36 -0500 Subject: fix new N402 errors fix the N402 errors that have slipped in in the last 48 hrs since starting this patch series. fix an N401 error that our scanner current can't find because it only looks for doc strings on classes and defs. this is the xeno's paradox of patch series, but we're getting close. Change-Id: I4a763bb4c812335d853eae05c72464f18ab93297 --- plugins/xenserver/networking/etc/xensource/scripts/novalib.py | 4 ++-- plugins/xenserver/xenapi/etc/xapi.d/plugins/xenstore.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/xenserver/networking/etc/xensource/scripts/novalib.py b/plugins/xenserver/networking/etc/xensource/scripts/novalib.py index dcbee3ded..0f88e52bb 100644 --- a/plugins/xenserver/networking/etc/xensource/scripts/novalib.py +++ b/plugins/xenserver/networking/etc/xensource/scripts/novalib.py @@ -22,7 +22,7 @@ import subprocess def execute_get_output(*command): - """Execute and return stdout""" + """Execute and return stdout.""" devnull = open(os.devnull, 'w') command = map(str, command) proc = subprocess.Popen(command, close_fds=True, @@ -32,7 +32,7 @@ def execute_get_output(*command): def execute(*command): - """Execute without returning stdout""" + """Execute without returning stdout.""" devnull = open(os.devnull, 'w') command = map(str, command) proc = subprocess.Popen(command, close_fds=True, diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenstore.py b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenstore.py index 5cfd32dbd..be873a7e8 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenstore.py +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenstore.py @@ -38,7 +38,7 @@ pluginlib.configure_logging("xenstore") class XenstoreError(pluginlib.PluginError): - """Errors that occur when calling xenstore-* through subprocesses""" + """Errors that occur when calling xenstore-* through subprocesses.""" def __init__(self, cmd, return_code, stderr, stdout): msg = "cmd: %s; returncode: %d; stderr: %s; stdout: %s" -- cgit