summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-04-19 17:16:20 (GMT)
committerGitHub <noreply@github.com>2022-04-19 17:16:20 (GMT)
commit3c4380651301f255ef8149b638a1fae205ede575 (patch)
tree3955ab934417d3c13693868464fcb01ede5c71d7 /Lib/socket.py
parenta059395921e4402c13a860aaa8fc44fea2023aa3 (diff)
downloadcpython-3c4380651301f255ef8149b638a1fae205ede575.zip
cpython-3c4380651301f255ef8149b638a1fae205ede575.tar.gz
cpython-3c4380651301f255ef8149b638a1fae205ede575.tar.bz2
gh-74166: make all_errors keyword-only (GH-91704)
Diffstat (limited to 'Lib/socket.py')
-rwxr-xr-xLib/socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index 28d9c89..e08fb62 100755
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -806,7 +806,7 @@ def getfqdn(name=''):
_GLOBAL_DEFAULT_TIMEOUT = object()
def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
- source_address=None, all_errors=False):
+ source_address=None, *, all_errors=False):
"""Connect to *address* and return the socket object.
Convenience function. Connect to *address* (a 2-tuple ``(host,