summaryrefslogtreecommitdiffstats
path: root/openstack/common/processutils.py
diff options
context:
space:
mode:
authorDina Belova <dbelova@mirantis.com>2013-06-03 17:44:55 +0400
committerDina Belova <dbelova@mirantis.com>2013-06-11 18:28:29 +0400
commit7119e29cb535426c587eaf2cfc2cfcd11a422df0 (patch)
treeee61f4db5c8ef559a9c50c5c501fb6c421f41fa0 /openstack/common/processutils.py
parentebaa578351c9c6b47c2f28ef6d74451e1483036b (diff)
downloadoslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.tar.gz
oslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.tar.xz
oslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.zip
Enable hacking H404 test.
H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd
Diffstat (limited to 'openstack/common/processutils.py')
-rw-r--r--openstack/common/processutils.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/openstack/common/processutils.py b/openstack/common/processutils.py
index 02cfada..5417055 100644
--- a/openstack/common/processutils.py
+++ b/openstack/common/processutils.py
@@ -74,9 +74,9 @@ def _subprocess_setup():
def execute(*cmd, **kwargs):
- """
- Helper method to shell out and execute a command through subprocess with
- optional retry.
+ """Helper method to shell out and execute a command through subprocess.
+
+ Allows optional retry.
:param cmd: Passed to subprocess.Popen.
:type cmd: string
@@ -187,8 +187,7 @@ def execute(*cmd, **kwargs):
def trycmd(*args, **kwargs):
- """
- A wrapper around execute() to more easily handle warnings and errors.
+ """A wrapper around execute() to more easily handle warnings and errors.
Returns an (out, err) tuple of strings containing the output of
the command's stdout and stderr. If 'err' is not empty then the