Skip to content

Commit 4eaa7df

Browse files
committed
Revert "Raise error when blf GzipFile is requested"
This reverts commit 07e0510.
1 parent 07e0510 commit 4eaa7df

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

can/io/blf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
of uncompressed data each. This data contains the actual CAN messages and other
1212
objects types.
1313
"""
14-
import gzip
14+
1515
import struct
1616
import zlib
1717
import datetime
@@ -395,11 +395,6 @@ def __init__(
395395
speed and compression (currently equivalent to level 6).
396396
"""
397397
mode = "rb+" if append else "wb"
398-
if type(file) == gzip.GzipFile:
399-
raise ValueError(
400-
f"The BLFWriter is currently incompatible with "
401-
f"{gzip.GzipFile.__name__}s. Try using a different zip format."
402-
)
403398
try:
404399
super().__init__(file, mode=mode)
405400
except FileNotFoundError:

0 commit comments

Comments
 (0)