summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/http/client.py2
-rw-r--r--Lib/test/libregrtest/setup.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index a6ab135b2c..28527fa878 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -942,7 +942,7 @@ class HTTPConnection:
(self.host,self.port), self.timeout, self.source_address)
# Might fail in OSs that don't implement TCP_NODELAY
try:
- self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
+ self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
except OSError as e:
if e.errno != errno.ENOPROTOOPT:
raise
diff --git a/Lib/test/libregrtest/setup.py b/Lib/test/libregrtest/setup.py
index 0bfd644bb3..964c25e397 100644
--- a/Lib/test/libregrtest/setup.py
+++ b/Lib/test/libregrtest/setup.py
@@ -158,4 +158,3 @@ def _adjust_resource_limits():
except (ValueError, OSError) as err:
print(f"Unable to raise RLIMIT_NOFILE from {fd_limit} to "
f"{new_fd_limit}: {err}.")
-