]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix spacing in docs for tarfile (GH-20629)
authorHarsha Laxman <HarshaLaxman@users.noreply.github.com>
Thu, 4 Jun 2020 19:58:10 +0000 (12:58 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Jun 2020 19:58:10 +0000 (12:58 -0700)
Before
```
content.txt is 42 bytes in size and isa regular file.
folder is 420 bytes in size and isa directory.
magic is 4200 bytes in size and issomething else.
```

After:
```
content.txt is 42 bytes in size and is a regular file.
folder is 420 bytes in size and is a directory.
magic is 4200 bytes in size and is something else.
```

Automerge-Triggered-By: @orsenthil
Doc/library/tarfile.rst

index 459e4ad991d9dcf2ac818b4044a90f9e2965ca01..c204263d3a094c156e6673572f4051bf96c4cd87 100644 (file)
@@ -787,7 +787,7 @@ How to read a gzip compressed tar archive and display some member information::
    import tarfile
    tar = tarfile.open("sample.tar.gz", "r:gz")
    for tarinfo in tar:
-       print(tarinfo.name, "is", tarinfo.size, "bytes in size and is", end="")
+       print(tarinfo.name, "is", tarinfo.size, "bytes in size and is ", end="")
        if tarinfo.isreg():
            print("a regular file.")
        elif tarinfo.isdir():