From 6854285a7213cc826e9beaaaf7779a731f0f906f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 1 Feb 2019 19:42:44 +0100 Subject: [PATCH] System --- README.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/README.md b/README.md index dae29c1..cdb8299 100644 --- a/README.md +++ b/README.md @@ -884,7 +884,7 @@ while True: **Opens file and returns a corresponding file object.** ```python - = open(, mode='r', encoding=None, newline=None) + = open(, mode='r', encoding=None) ``` #### Modes: @@ -898,20 +898,6 @@ while True: * **`'b'` - Binary mode.** * **`'t'` - Text mode (default).** -#### Newline - input: -* **`'None'` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`. `'\r'` and `'\r\n'` are translated to `'\n'` (default).** -* **`''` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`.** -* **`'\n'` - Input is broken on `'\n'`.** -* **`'\r'` - Input is broken on `'\r'`.** -* **`'\r\n'` - Input is broken on `'\r\n'`.** - -#### Newline - output: -* **`'None'` - Any `'\n'` is translated to system default line separator (default).** -* **`''` - No translation.** -* **`'\n'` - No translation.** -* **`'\r'` - Any `'\n'` is translated to `'\r'`.** -* **`'\r\n'` - Any `'\n'` is translated to `'\r\n'`.** - #### Read Text from File: ```python def read_file(filename):