Skip to content

Commit

Permalink
revert formatting of file.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentqb committed Mar 26, 2020
1 parent 7ed4f41 commit dfda00b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions torchaudio/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
from . import _soundfile_backend, _sox_backend


if platform.system() == "Windows":
_audio_backend = "soundfile"
_audio_backends = {"soundfile": _soundfile_backend}
else:
_audio_backend = "sox"
_audio_backends = {"sox": _sox_backend, "soundfile": _soundfile_backend}
_audio_backend = "soundfile" if platform.system() == "Windows" else "sox"
_audio_backends = {"sox": _sox_backend, "soundfile": _soundfile_backend}


def set_audio_backend(backend):
Expand Down

0 comments on commit dfda00b

Please sign in to comment.