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:
Miss Islington (bot) 2022-06-26 01:56:55 -07:00 committed by GitHub
parent 68112c3f70
commit f0f3a424af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View file

@ -942,7 +942,7 @@ class HTTPConnection:
(self.host,self.port), self.timeout, self.source_address) (self.host,self.port), self.timeout, self.source_address)
# Might fail in OSs that don't implement TCP_NODELAY # Might fail in OSs that don't implement TCP_NODELAY
try: 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: except OSError as e:
if e.errno != errno.ENOPROTOOPT: if e.errno != errno.ENOPROTOOPT:
raise raise

View file

@ -157,4 +157,3 @@ def _adjust_resource_limits():
except (ValueError, OSError) as err: except (ValueError, OSError) as err:
print(f"Unable to raise RLIMIT_NOFILE from {fd_limit} to " print(f"Unable to raise RLIMIT_NOFILE from {fd_limit} to "
f"{new_fd_limit}: {err}.") f"{new_fd_limit}: {err}.")

View file

@ -955,7 +955,7 @@ class TestExceptStarExceptionGroupSubclass(ExceptStarTest):
def test_falsy_exception_group_subclass(self): def test_falsy_exception_group_subclass(self):
class FalsyEG(ExceptionGroup): class FalsyEG(ExceptionGroup):
def __bool__(self): def __bool__(self):
return False return False
def derive(self, excs): def derive(self, excs):
return FalsyEG(self.message, excs) return FalsyEG(self.message, excs)