@@ -126,9 +126,8 @@ def download(
126
126
datasource_id : str ,
127
127
filepath : Optional [PathOrFileW ] = None ,
128
128
include_extract : bool = True ,
129
- no_extract : Optional [bool ] = None ,
130
129
) -> 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 ,)
132
131
133
132
# Update datasource
134
133
@api (version = "2.0" )
@@ -404,7 +403,6 @@ def download_revision(
404
403
revision_number : str ,
405
404
filepath : Optional [PathOrFileW ] = None ,
406
405
include_extract : bool = True ,
407
- no_extract : Optional [bool ] = None ,
408
406
) -> PathOrFileW :
409
407
if not datasource_id :
410
408
error = "Datasource ID undefined."
@@ -413,14 +411,6 @@ def download_revision(
413
411
url = "{0}/{1}/content" .format (self .baseurl , datasource_id )
414
412
else :
415
413
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
424
414
425
415
if not include_extract :
426
416
url += "?includeExtract=False"
0 commit comments