diff --git a/README.md b/README.md index 557a965..d015455 100644 --- a/README.md +++ b/README.md @@ -1527,9 +1527,9 @@ Open * **`'b'` - Binary mode.** ### Exceptions -* **`'FileNotFoundError'` can be risen when reading with `'r'` or `'r+'`.** -* **`'FileExistsError'` can be risen when writing with `'x'`.** -* **`'IsADirectoryError'` and `'PermissionError'` can be risen by any.** +* **`'FileNotFoundError'` can be raised when reading with `'r'` or `'r+'`.** +* **`'FileExistsError'` can be raised when writing with `'x'`.** +* **`'IsADirectoryError'` and `'PermissionError'` can be raised by any.** * **`'OSError'` is the parent class of all listed exceptions.** ### File Object diff --git a/index.html b/index.html index b450a17..889d713 100644 --- a/index.html +++ b/index.html @@ -1417,9 +1417,9 @@ value = args.<name> <li><strong><code class="python hljs"><span class="hljs-string">'t'</span></code> - Text mode (default).</strong></li> <li><strong><code class="python hljs"><span class="hljs-string">'b'</span></code> - Binary mode.</strong></li> </ul><div><h3 id="exceptions-1">Exceptions</h3><ul> -<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> -<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> -<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> +<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> +<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> +<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> <li><strong><code class="python hljs"><span class="hljs-string">'OSError'</span></code> is the parent class of all listed exceptions.</strong></li> </ul><div><h3 id="fileobject">File Object</h3><pre><code class="python language-python hljs"><file>.seek(<span class="hljs-number">0</span>) <span class="hljs-comment"># Moves to the start of the file.</span> <file>.seek(offset) <span class="hljs-comment"># Moves 'offset' chars/bytes from the start.</span>