Changeset dc654f8 for python/lib


Ignore:
Timestamp:
May 16, 2016, 3:24:09 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
f44384d
Parents:
4120fbc
Message:

python/: fix comparisons to None

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/slicing.py

    r4120fbc rdc654f8  
    1515    if timestamps[0] != 0:
    1616        timestamps = [0] + timestamps
    17         if timestamps_end != None:
     17        if timestamps_end is not None:
    1818            timestamps_end = [timestamps[1] - 1] + timestamps_end
    1919
    20     if timestamps_end != None:
     20    if timestamps_end is not None:
    2121        if len(timestamps_end) != len(timestamps):
    2222            raise ValueError("len(timestamps_end) != len(timestamps)")
     
    2828
    2929    source_base_name, _ = os.path.splitext(os.path.basename(source_file))
    30     if output_dir != None:
     30    if output_dir is not None:
    3131        if not os.path.isdir(output_dir):
    3232            os.makedirs(output_dir)
Note: See TracChangeset for help on using the changeset viewer.