diff --git a/README.md b/README.md index 9b8f0a2..f5c034f 100644 --- a/README.md +++ b/README.md @@ -1702,7 +1702,7 @@ import os CompletedProcess(args='bc', returncode=0, stdout='2\n', stderr='') ``` -#### Sends 'test.in' to the 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') @@ -1785,7 +1785,7 @@ import csv .writerow() # Encodes objects using `str()`. .writerows() # Appends multiple rows. ``` -* **File must be opened with `'newline=""'` argument, or an extra '\r' will be added on platforms that use '\r\n' linendings!** +* **File must be opened with `'newline=""'` argument, or an extra '\r' will be added to every '\n' on platforms that use '\r\n' linendings!** ### Parameters * **`'dialect'` - Master parameter that sets the default values.** diff --git a/index.html b/index.html index 981b104..4604258 100644 --- a/index.html +++ b/index.html @@ -1541,7 +1541,7 @@ shutil.rmtree(<path>) # Deletes t CompletedProcess(args='bc', returncode=0, stdout='2\n', stderr='') -

Sends 'test.in' to the 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)
@@ -1599,7 +1599,7 @@ CompletedProcess(args=['bc', 'newline=""' argument, or an extra '\r' will be added on platforms that use '\r\n' linendings!
+
  • File must be opened with 'newline=""' argument, or an extra '\r' will be added to every '\n' on platforms that use '\r\n' linendings!
  • Parameters

    • 'dialect' - Master parameter that sets the default values.