From ff452cc450ef36c68d24756e75534369c7931a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 11 Jan 2020 21:59:56 +0100 Subject: [PATCH] Shell commands --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fee1720..68b7fa9 100644 --- a/README.md +++ b/README.md @@ -1690,7 +1690,7 @@ CompletedProcess(args='bc', returncode=0, stdout='2\n', stderr='') >>> os.popen('echo 1 + 1 > test.in') >>> run(split('bc -s'), stdin=open('test.in'), stdout=open('test.out', 'w')) CompletedProcess(args=['bc', '-s'], returncode=0) ->>> os.popen('cat test.out').read() +>>> open('test.out').read() '2\n' ``` diff --git a/index.html b/index.html index 7ef0cea..50bfd83 100644 --- a/index.html +++ b/index.html @@ -1531,7 +1531,7 @@ CompletedProcess(args='bc', returncode=>>> os.popen('echo 1 + 1 > test.in') >>> run(split('bc -s'), stdin=open('test.in'), stdout=open('test.out', 'w')) CompletedProcess(args=['bc', '-s'], returncode=0) ->>> os.popen('cat test.out').read() +>>> open('test.out').read() '2\n'