Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4d4e68

Browse files
committed
Command Execution
1 parent 1ef3457 commit d4d4e68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ Command Execution
16041604
-----------------
16051605
### Files and Directories
16061606
* **Paths can be either strings, Paths, or DirEntry objects.**
1607-
* **All functions can raise either OSError or its subclasses.**
1607+
* **Functions report OS related errors by raising either OSError or one of its subclasses.**
16081608

16091609
```python
16101610
import os, shutil

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@
14571457
</code></pre>
14581458
<div><h2 id="commandexecution"><a href="#commandexecution" name="commandexecution">#</a>Command Execution</h2><div><h3 id="filesanddirectories">Files and Directories</h3><ul>
14591459
<li><strong>Paths can be either strings, Paths, or DirEntry objects.</strong></li>
1460-
<li><strong>All functions can raise either OSError or its subclasses.</strong></li>
1460+
<li><strong>Functions report OS related errors by raising either OSError or one of its subclasses.</strong></li>
14611461
</ul><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> os, shutil
14621462
&lt;str&gt; = os.getcwd() <span class="hljs-comment"># Returns the current working directory.</span>
14631463
os.chdir(&lt;path&gt;) <span class="hljs-comment"># Changes current working directory.</span>

0 commit comments

Comments
 (0)