From db5bb72f3e06e32e2be8e0ca082f726c368f0cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Eduardo?= Date: Fri, 12 Jan 2018 19:09:58 -0500 Subject: pep 8 en lvc/execute.py --- lvc/execute.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lvc/execute.py b/lvc/execute.py index af6f463..63ada38 100644 --- a/lvc/execute.py +++ b/lvc/execute.py @@ -1,6 +1,6 @@ """execute.py -- Run executable programs. -lvc.execute wraps the standard subprocess module in for MVC. +lvc.execute wraps the standard subprocess module in for LVC. """ import os @@ -9,6 +9,7 @@ import sys CalledProcessError = subprocess.CalledProcessError + def default_popen_args(): retval = { 'stdin': open(os.devnull, 'rb'), @@ -20,8 +21,9 @@ def default_popen_args(): retval['startupinfo'].dwFlags |= subprocess.STARTF_USESHOWWINDOW return retval + class Popen(subprocess.Popen): - """subprocess.Popen subclass that adds MVC default behavior. + """subprocess.Popen subclass that adds LVC default behavior. By default we: - Use a /dev/null equivilent for stdin @@ -37,6 +39,7 @@ class Popen(subprocess.Popen): final_args.update(kwargs) subprocess.Popen.__init__(self, commandline, **final_args) + def check_output(commandline, **kwargs): """MVC version of subprocess.check_output. -- cgit v1.2.3