Skip to content

Commit 1965394

Browse files
committed
Only emit warning once
1 parent a4f4e02 commit 1965394

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numcodecs/checksum32.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
crc32c_checksum: Callable[[Buffer, int], int] | None
1717

18+
warnings.filterwarnings('once', message='crc32c usage is deprecated.*', category=DeprecationWarning)
19+
1820
if importlib.util.find_spec("google_crc32c") is not None:
1921
import google_crc32c
2022

0 commit comments

Comments
 (0)