From 940bdfcaad1b1184bd02957f9443548715f5a3d9 Mon Sep 17 00:00:00 2001 From: "lielin.hyl" Date: Tue, 14 Nov 2023 21:13:34 +0800 Subject: [PATCH] * avoid W605 warning --- data_juicer/utils/compress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_juicer/utils/compress.py b/data_juicer/utils/compress.py index 3ffd9fada..6daf77eb9 100644 --- a/data_juicer/utils/compress.py +++ b/data_juicer/utils/compress.py @@ -235,7 +235,7 @@ def __init__(self, compressor_format: str = 'zstd'): self.compressor_extension = '.' + compressor_format self.compress_manager = CompressManager( compressor_format=compressor_format) - self.pattern = re.compile('_\d{5}_of_') # noqa W605 + self.pattern = re.compile(r'_\d{5}_of_') def _get_raw_filename(self, filename: Union[Path, str]): """