Skip to content

Commit 082cff1

Browse files
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 7a28019) Co-authored-by: Harsha Laxman <[email protected]>
1 parent 196810a commit 082cff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/tarfile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ How to read a gzip compressed tar archive and display some member information::
787787
import tarfile
788788
tar = tarfile.open("sample.tar.gz", "r:gz")
789789
for tarinfo in tar:
790-
print(tarinfo.name, "is", tarinfo.size, "bytes in size and is", end="")
790+
print(tarinfo.name, "is", tarinfo.size, "bytes in size and is ", end="")
791791
if tarinfo.isreg():
792792
print("a regular file.")
793793
elif tarinfo.isdir():

0 commit comments

Comments
 (0)