Skip to content

Code formatting and urllib2 import#1

Open
Ustrici wants to merge 2 commits intohrehfeld:masterfrom
Ustrici:dev
Open

Code formatting and urllib2 import#1
Ustrici wants to merge 2 commits intohrehfeld:masterfrom
Ustrici:dev

Conversation

@Ustrici
Copy link
Copy Markdown

@Ustrici Ustrici commented Jun 20, 2015

Code formatting and urllib2 import

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you change it so it works in both py2/3?

e.g. similar to

try:
... from urllib.request import urlopen
... from urllib.parse import urlparse
... except ImportError:
... from urlparse import urlparse
... from urllib import urlopen

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