Skip to content

Commit 8d6ddb3

Browse files
committed
Pass preset as a keyword argument
1 parent 11527ce commit 8d6ddb3

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
@@ -396,7 +396,7 @@ def __init__(self, name, mode, comptype, fileobj, bufsize, **kwargs):
396396
self.cmp = lzma.LZMADecompressor()
397397
self.exception = lzma.LZMAError
398398
else:
399-
self.cmp = lzma.LZMACompressor(kwargs["preset"])
399+
self.cmp = lzma.LZMACompressor(preset=kwargs["preset"])
400400
elif comptype == "zst":
401401
try:
402402
from compression import zstd

0 commit comments

Comments
 (0)