[Python-checkins] Run Tools/scripts/reindent.py (#94225) (#94291)
vstinner
webhook-mailer at python.org
Sun Jun 26 06:39:21 EDT 2022
https://github.com/python/cpython/commit/4b1144ced142be2765f5d14c9632cee2b75748f2
commit: 4b1144ced142be2765f5d14c9632cee2b75748f2
branch: 3.10
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2022-06-26T12:39:16+02:00
summary:
Run Tools/scripts/reindent.py (#94225) (#94291)
Reindent files which were not properly formatted (PEP 8: 4 spaces).
Remove also some trailing spaces.
(cherry picked from commit e87ada48a9e5d9d03f9759138869216df0d7383a)
files:
M Lib/http/client.py
M Lib/test/libregrtest/setup.py
diff --git a/Lib/http/client.py b/Lib/http/client.py
index a6ab135b2c387..28527fa8786ee 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -942,7 +942,7 @@ def connect(self):
(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 0bfd644bb3179..964c25e39700f 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}.")
-
More information about the Python-checkins
mailing list