Skip to content

Commit 7d8c5da

Browse files
committed
Open
1 parent 87fca1d commit 7d8c5da

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ while True:
890890
#### Modes:
891891
* `'r'` - read (default)
892892
* `'w'` - write (truncate)
893-
* `'x'` - write or fail if the file already exists
893+
* `'x'` - write or fail if file already exists
894894
* `'a'` - append
895895
* `'w+'` - read and write (truncate)
896896
* `'r+'` - read and write from beginning
@@ -899,18 +899,18 @@ while True:
899899
* `'t'` - text mode (default)
900900

901901
#### Newline - input:
902-
* `None` - Input is broken on '\n', '\r' and '\r\n'. '\r' and '\r\n' are translated to '\n'.
903-
* `''` - Input is broken on '\n', '\r' and '\r\n'.
904-
* `'\n'` - Input is broken on '\n'.
905-
* `'\r'` - Input is broken on '\r'.
906-
* `'\r\n'` - Input is broken on '\r\n'.
902+
* `None` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`. `'\r'` and `'\r\n'` are translated to `'\n'`.
903+
* `''` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`.
904+
* `'\n'` - Input is broken on `'\n'`.
905+
* `'\r'` - Input is broken on `'\r'`.
906+
* `'\r\n'` - Input is broken on `'\r\n'`.
907907

908908
#### Newline - output:
909-
* `None` - Any '\n' is translated to system default line separator.
909+
* `None` - Any `'\n'` is translated to system default line separator.
910910
* `''` - No translation.
911911
* `'\n'` - No translation.
912-
* `'\r'` - Any '\n' is translated to '\r'.
913-
* `'\r\n'` - Any '\n' is translated to '\r\n'
912+
* `'\r'` - Any `'\n'` is translated to `'\r'`.
913+
* `'\r\n'` - Any `'\n'` is translated to `'\r\n'`.
914914

915915
#### Read Text from File:
916916
```python

0 commit comments

Comments
 (0)