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

Fix some typos and conform to PEP 8 #60

Merged
merged 5 commits into from
Aug 24, 2018
Merged

Fix some typos and conform to PEP 8 #60

merged 5 commits into from
Aug 24, 2018

Conversation

allanlewis
Copy link
Contributor

No description provided.

@allanlewis
Copy link
Contributor Author

bump

@vitalk
Copy link
Collaborator

vitalk commented Mar 28, 2017

Hi, @allanlewis!

I'll review your changes in this weekend. Thank you for patience.

@@ -6,8 +6,9 @@
import socket

try:
from urllib2 import urlopen
from urllib2 import URLError, urlopen
Copy link
Member

Choose a reason for hiding this comment

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

A suggestion: instead of falling back on an ImportError, you might consider explicitly testing the python version using sys.version_info and use the correct imports for that version: I had problems in the past were this technique caused an import error in Python 3 for different reasons to give a confusing warning because of the fallback (pytest-dev/pytest-mock#68).

(I understand the code was already like this before but thought I would mention it anyway).

@nicoddemus nicoddemus merged commit d2f8ae1 into pytest-dev:master Aug 24, 2018
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.

3 participants