Skip to content

Commit dcdc33b

Browse files
committed
Rename stdout to more generic name
1 parent 29bbb08 commit dcdc33b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libinput-gestures

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ def open_lock(*args):
6767
return fp
6868

6969
def 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

8686
def get_libinput_vers():
8787
'Return the libinput installed version number string'

0 commit comments

Comments
 (0)