andabi / deep-voice-conversion

Deep neural networks for voice conversion (voice style transfer) in Tensorflow
MIT License
3.92k stars 843 forks source link

Python 3 syntax error in ./tools/split_wav.py #1

Closed cclauss closed 4 years ago

cclauss commented 6 years ago

flake8 testing of https://github.com/andabi/deep-voice-conversion on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./tools/split_wav.py:45:16: E999 SyntaxError: invalid syntax
    map(lambda (i, w): write(w, sr, '{}/{}_{}.wav'.format(target_path, filename, i)), enumerate(split_wavs))
               ^

The () probably need to be removed so it reads:

map(lambda i, w: write(w, sr, '{}/{}_{}.wav'.format(target_path, filename, i)), enumerate(split_wavs))
andabi commented 6 years ago

@cclauss The code is written in Python 2.7. Thanks for the issue.

cclauss commented 6 years ago

https://pythonclock.org