Skip to content

Skip resolve on ip#905

Merged
asvetlov merged 3 commits intoaio-libs:masterfrom
boylea:skip-resolve-on-ip
Jun 3, 2016
Merged

Skip resolve on ip#905
asvetlov merged 3 commits intoaio-libs:masterfrom
boylea:skip-resolve-on-ip

Conversation

@boylea
Copy link
Copy Markdown

@boylea boylea commented Jun 3, 2016

What these changes does?

This is to finish the work done in PR #874 for the PyCon sprints. I have added using a regex to check if a host is an IP address, which is ~2x more efficient according to timeit.

How to test your changes?

I have added tests for the regex, let me know if these should be more extensive. It is more important to make sure that we do not qualify something that needs a DNS lookup as an IP, than the other way around. I was not concerned about host strings that were neither a valid IP or a domain, as this is an error either way.

Checklist

  • Code is written and well
  • Tests for the changes are provided
  • Documentation reflects the changes

lphuberdeau and others added 3 commits June 2, 2016 16:04
Make the function that checks whether a string is an ip address or not easier
to access on it's own, so that it can be tested more easily. Fix accompanying test.
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 3, 2016

Coverage Status

Coverage decreased (-0.09%) to 98.109% when pulling d27e109 on boylea:skip-resolve-on-ip into 6f50235 on KeepSafe:master.

@asvetlov asvetlov merged commit 649dc17 into aio-libs:master Jun 3, 2016
@asvetlov
Copy link
Copy Markdown
Member

asvetlov commented Jun 3, 2016

thanks

@lock
Copy link
Copy Markdown

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants