-
Notifications
You must be signed in to change notification settings - Fork 83
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
Py36 fix #4
Conversation
cffb308
to
9ddcd81
Compare
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.
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 |
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.
Python 2 doesn't have urllib.request. This import will make the code not able to run in Python 2.
Good spot, let me fix this later. Thx
…Sent from my iPhone
On 2 Jul 2017, at 09:54, Vinh Khuc ***@***.***> wrote:
@vinhkhuc requested changes on this pull request.
Thanks for the PR. Looks good to me overall. Just found one small issue with it.
In data_util.py:
> @@ -2,10 +2,15 @@
import os
from os import path
import urllib
+import urllib.request as request
Python 2 doesn't have urllib.request. This import will make the code not able to run in Python 2.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
fixed, import now conditional on major python version number. |
Great! Thank you very much. |
Thanks!!
…On Sun, Jul 2, 2017 at 9:16 PM, Vinh Khuc ***@***.***> wrote:
Merged #4 <#4>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG_aUSGdQB-whH1nzCguTVu2-RL-flELks5sJ_q4gaJpZM4OLcXE>
.
|
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.