@@ -126,9 +126,8 @@ def download(
126126 datasource_id : str ,
127127 filepath : Optional [PathOrFileW ] = None ,
128128 include_extract : bool = True ,
129- no_extract : Optional [bool ] = None ,
130129 ) -> str :
131- return self .download_revision (datasource_id , None , filepath , include_extract , no_extract )
130+ return self .download_revision (datasource_id , None , filepath , include_extract ,)
132131
133132 # Update datasource
134133 @api (version = "2.0" )
@@ -404,7 +403,6 @@ def download_revision(
404403 revision_number : str ,
405404 filepath : Optional [PathOrFileW ] = None ,
406405 include_extract : bool = True ,
407- no_extract : Optional [bool ] = None ,
408406 ) -> PathOrFileW :
409407 if not datasource_id :
410408 error = "Datasource ID undefined."
@@ -413,14 +411,6 @@ def download_revision(
413411 url = "{0}/{1}/content" .format (self .baseurl , datasource_id )
414412 else :
415413 url = "{0}/{1}/revisions/{2}/content" .format (self .baseurl , datasource_id , revision_number )
416- if no_extract is False or no_extract is True :
417- import warnings
418-
419- warnings .warn (
420- "no_extract is deprecated, use include_extract instead." ,
421- DeprecationWarning ,
422- )
423- include_extract = not no_extract
424414
425415 if not include_extract :
426416 url += "?includeExtract=False"
0 commit comments