Skip to content

Commit 9a83419

Browse files
committed
Grammar fixes
1 parent 95f6cfa commit 9a83419

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,9 +1527,9 @@ Open
15271527
* **`'b'` - Binary mode.**
15281528

15291529
### Exceptions
1530-
* **`'FileNotFoundError'` can be risen when reading with `'r'` or `'r+'`.**
1531-
* **`'FileExistsError'` can be risen when writing with `'x'`.**
1532-
* **`'IsADirectoryError'` and `'PermissionError'` can be risen by any.**
1530+
* **`'FileNotFoundError'` can be raised when reading with `'r'` or `'r+'`.**
1531+
* **`'FileExistsError'` can be raised when writing with `'x'`.**
1532+
* **`'IsADirectoryError'` and `'PermissionError'` can be raised by any.**
15331533
* **`'OSError'` is the parent class of all listed exceptions.**
15341534

15351535
### File Object

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,9 +1417,9 @@
14171417
<li><strong><code class="python hljs"><span class="hljs-string">'t'</span></code> - Text mode (default).</strong></li>
14181418
<li><strong><code class="python hljs"><span class="hljs-string">'b'</span></code> - Binary mode.</strong></li>
14191419
</ul><div><h3 id="exceptions-1">Exceptions</h3><ul>
1420-
<li><strong><code class="python hljs"><span class="hljs-string">'FileNotFoundError'</span></code> can be risen when reading with <code class="python hljs"><span class="hljs-string">'r'</span></code> or <code class="python hljs"><span class="hljs-string">'r+'</span></code>.</strong></li>
1421-
<li><strong><code class="python hljs"><span class="hljs-string">'FileExistsError'</span></code> can be risen when writing with <code class="python hljs"><span class="hljs-string">'x'</span></code>.</strong></li>
1422-
<li><strong><code class="python hljs"><span class="hljs-string">'IsADirectoryError'</span></code> and <code class="python hljs"><span class="hljs-string">'PermissionError'</span></code> can be risen by any.</strong></li>
1420+
<li><strong><code class="python hljs"><span class="hljs-string">'FileNotFoundError'</span></code> can be raised when reading with <code class="python hljs"><span class="hljs-string">'r'</span></code> or <code class="python hljs"><span class="hljs-string">'r+'</span></code>.</strong></li>
1421+
<li><strong><code class="python hljs"><span class="hljs-string">'FileExistsError'</span></code> can be raised when writing with <code class="python hljs"><span class="hljs-string">'x'</span></code>.</strong></li>
1422+
<li><strong><code class="python hljs"><span class="hljs-string">'IsADirectoryError'</span></code> and <code class="python hljs"><span class="hljs-string">'PermissionError'</span></code> can be raised by any.</strong></li>
14231423
<li><strong><code class="python hljs"><span class="hljs-string">'OSError'</span></code> is the parent class of all listed exceptions.</strong></li>
14241424
</ul><div><h3 id="fileobject">File Object</h3><pre><code class="python language-python hljs">&lt;file&gt;.seek(<span class="hljs-number">0</span>) <span class="hljs-comment"># Moves to the start of the file.</span>
14251425
&lt;file&gt;.seek(offset) <span class="hljs-comment"># Moves 'offset' chars/bytes from the start.</span>

0 commit comments

Comments
 (0)