File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -403,14 +403,20 @@ def get_handle(
403
403
# GZ Compression
404
404
if compression == "gzip" :
405
405
if is_path :
406
- f = gzip .open (path_or_buf , mode , ** compression_args ) # type: ignore
406
+ f = gzip .open (
407
+ path_or_buf , mode , ** compression_args # type: ignore
408
+ )
407
409
else :
408
- f = gzip .GzipFile (fileobj = path_or_buf , ** compression_args ) # type: ignore
410
+ f = gzip .GzipFile (
411
+ fileobj = path_or_buf , ** compression_args # type: ignore
412
+ )
409
413
410
414
# BZ Compression
411
415
elif compression == "bz2" :
412
416
if is_path :
413
- f = bz2 .BZ2File (path_or_buf , mode , ** compression_args ) # type: ignore
417
+ f = bz2 .BZ2File (
418
+ path_or_buf , mode , ** compression_args # type: ignore
419
+ )
414
420
else :
415
421
f = bz2 .BZ2File (path_or_buf , ** compression_args ) # type: ignore
416
422
You can’t perform that action at this time.
0 commit comments