Skip to content

Commit 733acc3

Browse files
committed
Open
1 parent dc79bd9 commit 733acc3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ Open
13091309
```
13101310
* **`'encoding=None'` means default encoding is used, which is platform dependent. Best practice is to use `'encoding="utf-8"'` whenever possible.**
13111311
* **`'newline=None'` means all different end of line combinations are converted to '\n' on read, while on write all '\n' characters are converted to system's default line separator.**
1312+
* **`'newline=""'` means no conversions take place, but lines are still broken on either '\n', '\r' or '\r\n'.**
13121313

13131314
### Modes
13141315
* **`'r'` - Read (default).**

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,7 @@ <h2 id="open"><a href="#open" name="open">#</a>Open</h2>
11871187
<ul>
11881188
<li><strong><code class="python hljs"><span class="hljs-string">'encoding=None'</span></code> means default encoding is used, which is platform dependent. Best practice is to use <code class="python hljs"><span class="hljs-string">'encoding="utf-8"'</span></code> whenever possible.</strong></li>
11891189
<li><strong><code class="python hljs"><span class="hljs-string">'newline=None'</span></code> means all different end of line combinations are converted to '\n' on read, while on write all '\n' characters are converted to system's default line separator.</strong></li>
1190+
<li><strong><code class="python hljs"><span class="hljs-string">'newline=""'</span></code> means no conversions take place, but lines are still broken on either '\n', '\r' or '\r\n'.</strong></li>
11901191
</ul>
11911192
<h3 id="modes">Modes</h3>
11921193
<ul>

0 commit comments

Comments
 (0)