diff --git a/README.md b/README.md index b4c076b..4e3cb01 100644 --- a/README.md +++ b/README.md @@ -1731,7 +1731,7 @@ os.remove(<path>) # Deletes the file. os.rmdir(<path>) # Deletes the empty directory. shutil.rmtree(<path>) # Deletes the directory. ``` -* **Paths can be either strings, Paths or DirEntry objects.** +* **Paths can be either strings, Paths, or DirEntry objects.** * **Functions report OS related errors by raising either OSError or one of its [subclasses](#exceptions-1).** ### Shell Commands diff --git a/index.html b/index.html index a2e11ae..53a5151 100644 --- a/index.html +++ b/index.html @@ -1450,7 +1450,7 @@ os.rmdir(<path>) <span class="hljs-comment"># Deletes t shutil.rmtree(<path>) <span class="hljs-comment"># Deletes the directory.</span> </code></pre> <ul> -<li><strong>Paths can be either strings, Paths or DirEntry objects.</strong></li> +<li><strong>Paths can be either strings, Paths, or DirEntry objects.</strong></li> <li><strong>Functions report OS related errors by raising either OSError or one of its <a href="#exceptions-1">subclasses</a>.</strong></li> </ul> <div><h3 id="shellcommands">Shell Commands</h3><pre><code class="python language-python hljs"><pipe> = os.popen(<span class="hljs-string">'<command>'</span>) <span class="hljs-comment"># Executes command in sh/cmd. Returns its stdout pipe.</span>