Ignore:
Timestamp:
Apr 18, 2016, 11:46:18 PM (4 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
81ad577, e76842e
Parents:
6db7600
Message:

tests/: continue python3 preparation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/utils.py

    r6db7600 r376d5e9  
    55    from numpy import array
    66    filename = os.path.join(os.path.dirname(__file__), filename)
    7     return array([line.split() for line in open(filename).readlines()],
    8         dtype = dtype)
     7    with open(filename) as f:
     8        lines = f.readlines()
     9    return array([line.split() for line in lines],
     10            dtype = dtype)
    911
    1012def list_all_sounds(rel_dir):
Note: See TracChangeset for help on using the changeset viewer.