Skip to content

Commit fabfa11

Browse files
committed
Correct the error message
1 parent 0d172d2 commit fabfa11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/tarfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ def not_compressed(comptype):
19331933
for arg in ("level", "options", "zstd_dict"):
19341934
if arg in kwargs:
19351935
raise ValueError(
1936-
f"{arg} is only valid for w:zst, x:zst and w|zst modes"
1936+
f"{arg} is only valid for zstd compression"
19371937
)
19381938

19391939
compresslevel = kwargs.pop("compresslevel", 6)

0 commit comments

Comments
 (0)