Skip to content
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

Py36 fix #4

Merged
merged 3 commits into from
Jul 2, 2017
Merged

Py36 fix #4

merged 3 commits into from
Jul 2, 2017

Conversation

esvhd
Copy link
Contributor

@esvhd esvhd commented Jul 1, 2017

Hi,

This is related to #3 changes to make these scripts work for Python 3.x.

I tested these changes with Anaconda Python 3.6.

Hope this helps.

Thanks.

@vinhkhuc vinhkhuc force-pushed the master branch 13 times, most recently from cffb308 to 9ddcd81 Compare July 2, 2017 08:45
Copy link
Owner

@vinhkhuc vinhkhuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Looks good to me overall. Just found one small issue with it.

data_util.py Outdated
@@ -2,10 +2,15 @@
import os
from os import path
import urllib
import urllib.request as request
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 2 doesn't have urllib.request. This import will make the code not able to run in Python 2.

@esvhd
Copy link
Contributor Author

esvhd commented Jul 2, 2017 via email

@esvhd
Copy link
Contributor Author

esvhd commented Jul 2, 2017

fixed, import now conditional on major python version number.

@vinhkhuc
Copy link
Owner

vinhkhuc commented Jul 2, 2017

Great! Thank you very much.

@vinhkhuc vinhkhuc merged commit cbf48ed into vinhkhuc:master Jul 2, 2017
@esvhd
Copy link
Contributor Author

esvhd commented Jul 2, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants