Skip to content

Commit 4f47850

Browse files
authored
update logging_subprocess function
1. added newline for return 2. added one-time warning (once per subprocess)
1 parent 76895dc commit 4f47850

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bin/github-backup

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ def logging_subprocess(popenargs,
6969
"""
7070
child = subprocess.Popen(popenargs, stdout=subprocess.PIPE,
7171
stderr=subprocess.PIPE, **kwargs)
72+
if sys.platform == 'win32':
73+
log_info("Windows operating system detected - no subprocess logging will be returned")
7274

7375
log_level = {child.stdout: stdout_log_level,
7476
child.stderr: stderr_log_level}
7577

7678
def check_io():
77-
if sys.platform == 'win32': return
79+
if sys.platform == 'win32':
80+
return
7881
ready_to_read = select.select([child.stdout, child.stderr],
7982
[],
8083
[],

0 commit comments

Comments
 (0)