• Edward Z. Yang's avatar
    Make torchaudio work on Python 2. (#209) · a424509d
    Edward Z. Yang authored
    
    
    - Apply __future__ imports uniformly (future division is the biggy, but absolute
      imports mattered too)
    - Hotfix use of tempfile.TemporaryDirectory using a BC library (DO NOT
      add this library as a dependency to torchaudio; it's only for testing)
    - Replace math.gcd with fractions.gcd
    - Fix a weird pytest collection bug involving parametrized tests
    - Turn on Python 2 and Python 3.7 in Travis.
    Signed-off-by: default avatarEdward Z. Yang <ezyang@fb.com>
    a424509d
common_utils.py 1.64 KB