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

drop resolve param from TCPConnector #2379

Merged
merged 1 commit into from
Oct 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/2377.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop `resolve` param from TCPConnector.
4 changes: 1 addition & 3 deletions aiohttp/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,6 @@ class TCPConnector(BaseConnector):
digest of the expected certificate in DER format to verify
that the certificate the server presents matches. See also
https://en.wikipedia.org/wiki/Transport_Layer_Security#Certificate_pinning
resolve - (Deprecated) Set to True to do DNS lookup for
host name.
resolver - Enable DNS lookups and use this
resolver
use_dns_cache - Use memory cache for DNS lookups.
Expand All @@ -581,7 +579,7 @@ class TCPConnector(BaseConnector):
"""

def __init__(self, *, verify_ssl=True, fingerprint=None,
resolve=sentinel, use_dns_cache=True, ttl_dns_cache=10,
use_dns_cache=True, ttl_dns_cache=10,
family=0, ssl_context=None, local_addr=None,
resolver=None, keepalive_timeout=sentinel,
force_close=False, limit=100, limit_per_host=0,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ async def test_HTTP_200_OK_METHOD_connector(loop, test_client):
async def handler(request):
return web.Response(text=request.method)

conn = aiohttp.TCPConnector(resolve=True, loop=loop)
conn = aiohttp.TCPConnector(loop=loop)
conn.clear_dns_cache()

app = web.Application()
Expand Down