-
Notifications
You must be signed in to change notification settings - Fork 13
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
Read images from urls #450
Conversation
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.
LGTM. Note the one py2/3 comment
eta/core/web.py
Outdated
|
||
def is_url(filename): | ||
"""Return True if string is an http or ftp path.""" | ||
return (isinstance(filename, str) and |
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.
For py2/3 compatibility, use isinstance(filename, six.string_types)
here!
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.
(the pattern I gave is (I hope) consistently used throughout ETA)
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.
Right. I pulled this function from skimage, and overlooked cleaning it up. Done!
Awesome, thanks for adding this so fast! |
Closes #449.