-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whisper-fill.py: python3 compatiblity with itertools #209
Conversation
bin/whisper-fill.py
Outdated
import time | ||
import sys | ||
import optparse | ||
|
||
if sys.version_info >= (3, 0): | ||
xrange = range | ||
else: | ||
from future_builtins import filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should include zip too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure if it is needed in this specific case. But I've added it to be sure we get same behaviour in all version.
3 similar comments
I have no clue why the travis test fails, seems to work fine locally. |
Test went fine after restart, Codacy also can be ignored in this case |
Should address issues mentioned in #190