-
Notifications
You must be signed in to change notification settings - Fork 72
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
Convert to Python3 #144
base: master
Are you sure you want to change the base?
Convert to Python3 #144
Conversation
@@ -20,7 +20,7 @@ | |||
$Id$ | |||
""" | |||
|
|||
import os, shutil, sys, tempfile, urllib2 | |||
import os, shutil, sys, tempfile, urllib.request, urllib.error, urllib.parse |
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.
thats python3 only
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.
Add following script shall make it python2/3 compatible
# Python 2 and 3: alternative 4
try:
from urllib.parse import urlparse, urlencode
from urllib.request import urlopen, Request
from urllib.error import HTTPError
except ImportError:
from urlparse import urlparse
from urllib import urlencode
from urllib2 import urlopen, Request, HTTPError
btw, did you communicate with the maintainer before undertaking this massive conversation? |
where is gone the PR?
…On Sun, May 21, 2017 at 1:47 PM Ronny Pfannschmidt ***@***.***> wrote:
btw, did you communicate with the maintainer before undertaking this
massive conversation?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#144 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAA4oumVW3-aWVp07j_lSQ6qv8sNh6y_ks5r8CRrgaJpZM4NhhFU>
.
|
i think i'm fine with the pr, maybe some extensions can be removed? |
No description provided.