Skip to content

Commit b2f5c03

Browse files
freak4pcaciidgh
authored andcommitted
rsync: Use check_output instead of open & check_call
1 parent 5fada16 commit b2f5c03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Utilities/bootstrap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,8 +917,7 @@ def main():
917917

918918
# Confirm rsync is available.
919919
try:
920-
FNULL = open(os.devnull, 'w')
921-
subprocess.check_call(['rsync', '--version'], stdout=FNULL, stderr=subprocess.STDOUT)
920+
subprocess.check_output(['rsync', '--version'], stderr=subprocess.STDOUT)
922921
except Exception as e:
923922
error("rsync is not available with error: %s" % e)
924923

0 commit comments

Comments
 (0)