mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Run Tools/scripts/reindent.py (GH-94225)
Reindent files which were not properly formatted (PEP 8: 4 spaces).
Remove also some trailing spaces.
(cherry picked from commit e87ada48a9
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
68112c3f70
commit
f0f3a424af
4 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -157,4 +157,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}.")
|
||||
|
||||
|
|
|
@ -955,7 +955,7 @@ class TestExceptStarExceptionGroupSubclass(ExceptStarTest):
|
|||
def test_falsy_exception_group_subclass(self):
|
||||
class FalsyEG(ExceptionGroup):
|
||||
def __bool__(self):
|
||||
return False
|
||||
return False
|
||||
|
||||
def derive(self, excs):
|
||||
return FalsyEG(self.message, excs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue