Skip to content

Commit

Permalink
RM: run(..., saver=None) - was deprecated and ignored as of 0.12.0rc6…
Browse files Browse the repository at this point in the history
…~30^2~4
  • Loading branch information
yarikoptic committed May 28, 2020
1 parent 2381458 commit ec4afad
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions datalad/core/local/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,7 @@ def run_command(cmd, dataset=None, inputs=None, outputs=None, expand=None,
rerun_info=None,
extra_inputs=None,
rerun_outputs=None,
inject=False,
saver=None):
inject=False):
"""Run `cmd` in `dataset` and record the results.
`Run.__call__` is a simple wrapper over this function. Aside from backward
Expand Down Expand Up @@ -525,8 +524,6 @@ def run_command(cmd, dataset=None, inputs=None, outputs=None, expand=None,
preparation and command execution. In this mode, the caller is
responsible for ensuring that the state of the working tree is
appropriate for recording the command's results.
saver : None
This is obsolete and ignored. It will be removed in a later release.
Yields
------
Expand All @@ -535,10 +532,6 @@ def run_command(cmd, dataset=None, inputs=None, outputs=None, expand=None,
if not cmd:
lgr.warning("No command given")
return
if saver:
warnings.warn("`saver` argument is ignored "
"and will be removed in a future release",
DeprecationWarning)

rel_pwd = rerun_info.get('pwd') if rerun_info else None
if rel_pwd and dataset:
Expand Down

0 comments on commit ec4afad

Please sign in to comment.