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