6
6
import threading
7
7
import multiprocessing
8
8
import os
9
- from deprecated import deprecated
9
+ from typing_extensions import deprecated
10
10
11
11
12
12
from cpython.buffer cimport PyBUF_ANY_CONTIGUOUS, PyBUF_WRITEABLE
@@ -100,15 +100,15 @@ def _init():
100
100
""" Initialize the Blosc library environment."""
101
101
blosc_init()
102
102
103
- init = deprecated(_init)
103
+ init = deprecated(" init is deprecated, with no replacement " )( _init)
104
104
105
105
106
106
def _destroy ():
107
107
""" Destroy the Blosc library environment."""
108
108
blosc_destroy()
109
109
110
110
111
- destroy = deprecated(_destroy)
111
+ destroy = deprecated(" destroy is deprecated, with no replacement " )( _destroy)
112
112
113
113
114
114
def _compname_to_compcode (cname ):
@@ -119,7 +119,7 @@ def _compname_to_compcode(cname):
119
119
cname = cname.encode(' ascii' )
120
120
return blosc_compname_to_compcode(cname)
121
121
122
- compname_to_compcode = deprecated(_compname_to_compcode)
122
+ compname_to_compcode = deprecated(" compname_to_compcode is deprecated, with no replacement " )( _compname_to_compcode)
123
123
124
124
125
125
def list_compressors ():
@@ -226,13 +226,13 @@ def _cbuffer_metainfo(source):
226
226
227
227
return typesize, shuffle, memcpyed
228
228
229
- cbuffer_metainfo = deprecated(_cbuffer_metainfo)
229
+ cbuffer_metainfo = deprecated(" cbuffer_metainfo is deprecated, with no replacement " )( _cbuffer_metainfo)
230
230
231
231
def _err_bad_cname (cname ):
232
232
raise ValueError (' bad compressor or compressor not supported: %r ; expected one of '
233
233
' %s ' % (cname, list_compressors()))
234
234
235
- err_bad_cname = deprecated(_err_bad_cname)
235
+ err_bad_cname = deprecated(" err_bad_cname is deprecated, with no replacement " )( _err_bad_cname)
236
236
237
237
def compress (source , char* cname , int clevel , int shuffle = SHUFFLE,
238
238
int blocksize = AUTOBLOCKS):
@@ -489,7 +489,7 @@ def _decompress_partial(source, start, nitems, dest=None):
489
489
490
490
return dest
491
491
492
- decompress_partial = deprecated(_decompress_partial)
492
+ decompress_partial = deprecated(" decompress_partial is deprecated, with no replacement " )( _decompress_partial)
493
493
494
494
# set the value of this variable to True or False to override the
495
495
# default adaptive behaviour
0 commit comments