File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -403,14 +403,20 @@ def get_handle(
403403 # GZ Compression
404404 if compression == "gzip" :
405405 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+ )
407409 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+ )
409413
410414 # BZ Compression
411415 elif compression == "bz2" :
412416 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+ )
414420 else :
415421 f = bz2 .BZ2File (path_or_buf , ** compression_args ) # type: ignore
416422
You can’t perform that action at this time.
0 commit comments