]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Move "or" outside monospace syntax in `tarfile.rst` (GH-136263)
authorRafael Fontenelle <rffontenelle@users.noreply.github.com>
Fri, 4 Jul 2025 14:40:32 +0000 (11:40 -0300)
committerGitHub <noreply@github.com>
Fri, 4 Jul 2025 14:40:32 +0000 (10:40 -0400)
Doc/library/tarfile.rst

index 70466fbbc4d8f9b9fbaf5c163e63c788d3eb0fe8..99e8ef7b886035564c9bca673b4eabd7ba6abeba 100644 (file)
@@ -63,8 +63,8 @@ Some facts and figures:
    +------------------+---------------------------------------------+
    | mode             | action                                      |
    +==================+=============================================+
-   | ``'r' or 'r:*'`` | Open for reading with transparent           |
-   |                  | compression (recommended).                  |
+   | ``'r'`` or       | Open for reading with transparent           |
+   | ``'r:*'``        | compression (recommended).                  |
    +------------------+---------------------------------------------+
    | ``'r:'``         | Open for reading exclusively without        |
    |                  | compression.                                |
@@ -98,10 +98,11 @@ Some facts and figures:
    |                  | Raise a :exc:`FileExistsError` exception    |
    |                  | if it already exists.                       |
    +------------------+---------------------------------------------+
-   | ``'a' or 'a:'``  | Open for appending with no compression. The |
-   |                  | file is created if it does not exist.       |
+   | ``'a'`` or       | Open for appending with no compression. The |
+   | ``'a:'``         | file is created if it does not exist.       |
    +------------------+---------------------------------------------+
-   | ``'w' or 'w:'``  | Open for uncompressed writing.              |
+   | ``'w'`` or       | Open for uncompressed writing.              |
+   | ``'w:'``         |                                             |
    +------------------+---------------------------------------------+
    | ``'w:gz'``       | Open for gzip compressed writing.           |
    +------------------+---------------------------------------------+