Skip to content

Commit

Permalink
Fix 2.6 compatibility with subprocess
Browse files Browse the repository at this point in the history
We can add this back once we go 2.7-only.
  • Loading branch information
sampsyo committed Dec 21, 2014
1 parent b151026 commit 016c901
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion beets/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ def command_output(cmd, shell=False):
raise subprocess.CalledProcessError(
returncode=proc.returncode,
cmd=' '.join(cmd),
output=stderr
)
return stdout

Expand Down
3 changes: 1 addition & 2 deletions beetsplug/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,9 @@ def encode(command, source, dest, pretend=False):
# Something went wrong (probably Ctrl+C), remove temporary files
log.info(u'Encoding {0} failed. Cleaning up...'
.format(util.displayable_path(source)))
log.debug(u'Command {0} exited with status {1}, output: {2}'.format(
log.debug(u'Command {0} exited with status {1}'.format(
exc.cmd.decode('utf8', 'ignore'),
exc.returncode,
exc.output.decode('utf8', 'ignore'),
))
util.remove(dest)
util.prune_dirs(os.path.dirname(dest))
Expand Down

0 comments on commit 016c901

Please sign in to comment.