Skip to content

Commit

Permalink
Replaced some calls to the removed succeeded attribute
Browse files Browse the repository at this point in the history
According to documentation, the correct way is to consult 'ok' now
  • Loading branch information
ldelelis committed May 12, 2018
1 parent 84fbd36 commit 7c9bd86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patchwork/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def exists(c, runner, path):
Return True if given path exists on the current remote host.
"""
cmd = 'test -e "$(echo {})"'.format(path)
return runner(cmd, hide=True, warn=True).succeeded
return runner(cmd, hide=True, warn=True).ok


@set_runner
Expand All @@ -54,7 +54,7 @@ def contains(c, runner, filename, text, exact=False, escape=True):
if exact:
text = "^{}$".format(text)
egrep_cmd = 'egrep "{}" "{}"'.format(text, filename)
return runner(egrep_cmd, hide=True, warn=True).succeeded
return runner(egrep_cmd, hide=True, warn=True).ok


@set_runner
Expand Down

0 comments on commit 7c9bd86

Please sign in to comment.