aboutsummaryrefslogtreecommitdiffstats
path: root/lvc/execute.py
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@hyperbola.info>2018-01-12 19:09:58 -0500
committerJesús Eduardo <heckyel@hyperbola.info>2018-01-12 19:09:58 -0500
commitdb5bb72f3e06e32e2be8e0ca082f726c368f0cd3 (patch)
tree126d5c76e3623bd22e9ce776e3b516fa9e75ecb0 /lvc/execute.py
parent87422eb2302f9e6f389b030f09cbcbcb3f9e9824 (diff)
downloadlibrevideoconverter-db5bb72f3e06e32e2be8e0ca082f726c368f0cd3.tar.lz
librevideoconverter-db5bb72f3e06e32e2be8e0ca082f726c368f0cd3.tar.xz
librevideoconverter-db5bb72f3e06e32e2be8e0ca082f726c368f0cd3.zip
pep 8 en lvc/execute.py
Diffstat (limited to 'lvc/execute.py')
-rw-r--r--lvc/execute.py7
1 files 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.