summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-04 20:19:47 (GMT)
committerGitHub <noreply@github.com>2020-06-04 20:19:47 (GMT)
commitc935b33322843b3abfd930cd24b8806f3923f1cc (patch)
tree67de95e1f27ec5213c8058c7dbd091afa781bfa5 /Doc/library
parent6f7346bb3983cd7a6aa97eeeafffb3cecd5292b8 (diff)
downloadcpython-c935b33322843b3abfd930cd24b8806f3923f1cc.zip
cpython-c935b33322843b3abfd930cd24b8806f3923f1cc.tar.gz
cpython-c935b33322843b3abfd930cd24b8806f3923f1cc.tar.bz2
Fix spacing in docs for tarfile (GH-20629)
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 (cherry picked from commit 7a280197f4162e5fcdde6f34701a9fa6e669190d) Co-authored-by: Harsha Laxman <HarshaLaxman@users.noreply.github.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/tarfile.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst
index c34f2c4..d60f1c8 100644
--- a/Doc/library/tarfile.rst
+++ b/Doc/library/tarfile.rst
@@ -784,7 +784,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():