From 7d8c5da8a3343c06bbef8b08544091c8620dfb50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 1 Feb 2019 19:14:05 +0100 Subject: [PATCH] Open --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 202a9cf..bb1b41d 100644 --- a/README.md +++ b/README.md @@ -890,7 +890,7 @@ while True: #### Modes: * `'r'` - read (default) * `'w'` - write (truncate) -* `'x'` - write or fail if the file already exists +* `'x'` - write or fail if file already exists * `'a'` - append * `'w+'` - read and write (truncate) * `'r+'` - read and write from beginning @@ -899,18 +899,18 @@ while True: * `'t'` - text mode (default) #### Newline - input: -* `None` - Input is broken on '\n', '\r' and '\r\n'. '\r' and '\r\n' are translated to '\n'. -* `''` - 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'. +* `None` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`. `'\r'` and `'\r\n'` are translated to `'\n'`. +* `''` - 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. +* `None` - Any `'\n'` is translated to system default line separator. * `''` - No translation. * `'\n'` - No translation. -* `'\r'` - Any '\n' is translated to '\r'. -* `'\r\n'` - Any '\n' is translated to '\r\n' +* `'\r'` - Any `'\n'` is translated to `'\r'`. +* `'\r\n'` - Any `'\n'` is translated to `'\r\n'`. #### Read Text from File: ```python