File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,21 +67,21 @@ def open_lock(*args):
6767 return fp
6868
6969def run (cmd , * , check = True , block = True ):
70- 'Run subprocess function and return standard output or None'
70+ 'Run function and return standard output, Popen() handle, or None'
7171 # Maintain subprocess compatibility with python 3.4 so use
7272 # check_output() rather than run().
7373 try :
7474 if block :
75- stdout = subprocess .check_output (cmd , universal_newlines = True ,
75+ result = subprocess .check_output (cmd , universal_newlines = True ,
7676 stderr = (None if check else subprocess .DEVNULL ))
7777 else :
78- stdout = subprocess .Popen (cmd )
78+ result = subprocess .Popen (cmd )
7979 except Exception as e :
80- stdout = None
80+ result = None
8181 if check :
8282 print (str (e ), file = sys .stderr )
8383
84- return stdout
84+ return result
8585
8686def get_libinput_vers ():
8787 'Return the libinput installed version number string'
You can’t perform that action at this time.
0 commit comments