diff --git a/README.md b/README.md index 6fc45a7..59dc905 100644 --- a/README.md +++ b/README.md @@ -1685,14 +1685,14 @@ import os = os.popen('').read() ``` -#### Sends '1 + 1' to a calculator and captures its output: +#### Sends '1 + 1' to the calculator and captures its output: ```python >>> from subprocess import run >>> run('bc', input='1 + 1\n', capture_output=True, encoding='utf-8') CompletedProcess(args='bc', returncode=0, stdout='2\n', stderr='') ``` -#### Sends 'test.in' to a calculator running in standard mode and saves its output to 'test.out': +#### Sends 'test.in' to the calculator running in standard mode and saves its output to 'test.out': ```python >>> from shlex import split >>> os.popen('echo 1 + 1 > test.in') diff --git a/index.html b/index.html index 997e5b0..a8019cc 100644 --- a/index.html +++ b/index.html @@ -1528,12 +1528,12 @@ shutil.rmtree(<path>) # Deletes t <str> = os.popen('<shell_command>').read() -

Sends '1 + 1' to a calculator and captures its output:

>>> from subprocess import run
+

Sends '1 + 1' to the calculator and captures its output:

>>> from subprocess import run
 >>> run('bc', input='1 + 1\n', capture_output=True, encoding='utf-8')
 CompletedProcess(args='bc', returncode=0, stdout='2\n', stderr='')
 
-

Sends 'test.in' to a calculator running in standard mode and saves its output to 'test.out':

>>> from shlex import split
+

Sends 'test.in' to the calculator running in standard mode and saves its output to 'test.out':

>>> from shlex import split
 >>> 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)