Skip to content

Commit 6854285

Browse files
committed
System
1 parent a136659 commit 6854285

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ while True:
884884
**Opens file and returns a corresponding file object.**
885885

886886
```python
887-
<file> = open(<path>, mode='r', encoding=None, newline=None)
887+
<file> = open(<path>, mode='r', encoding=None)
888888
```
889889

890890
#### Modes:
@@ -898,20 +898,6 @@ while True:
898898
* **`'b'` - Binary mode.**
899899
* **`'t'` - Text mode (default).**
900900

901-
#### Newline - input:
902-
* **`'None'` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`. `'\r'` and `'\r\n'` are translated to `'\n'` (default).**
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'`.**
907-
908-
#### Newline - output:
909-
* **`'None'` - Any `'\n'` is translated to system default line separator (default).**
910-
* **`''` - No translation.**
911-
* **`'\n'` - No translation.**
912-
* **`'\r'` - Any `'\n'` is translated to `'\r'`.**
913-
* **`'\r\n'` - Any `'\n'` is translated to `'\r\n'`.**
914-
915901
#### Read Text from File:
916902
```python
917903
def read_file(filename):

0 commit comments

Comments
 (0)