From f8e8df31ee2985fb596bb93a6f4572e0de2a81de Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 2 Sep 2023 18:51:12 +0200 Subject: [PATCH] Revert "Run Tools/scripts/reindent.py (GH-94225)" This reverts commit f0f3a424afb00a15ce8c0140dd218f5b33929be6. --- Lib/http/client.py | 2 +- Lib/test/libregrtest/setup.py | 1 + Lib/test/test_ast.py | 4 ++-- Lib/test/test_except_star.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Lib/http/client.py b/Lib/http/client.py index 1c7f4639db5888..15767a5d1204f3 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -946,7 +946,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 c097d6d597aa05..cfc1b82d2785cb 100644 --- a/Lib/test/libregrtest/setup.py +++ b/Lib/test/libregrtest/setup.py @@ -157,3 +157,4 @@ 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}.") + diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 33c13ee29a2689..eec2ea8763d060 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -336,7 +336,7 @@ def test_ast_validation(self): for snippet in snippets_to_validate: tree = ast.parse(snippet) compile(tree, '', 'exec') - + def test_invalid_position_information(self): invalid_linenos = [ (10, 1), (-10, -11), (10, -11), (-5, -2), (-5, 1) @@ -365,7 +365,7 @@ def test_invalid_position_information(self): def test_compilation_of_ast_nodes_with_default_end_position_values(self): tree = ast.Module(body=[ - ast.Import(names=[ast.alias(name='builtins', lineno=1, col_offset=0)], lineno=1, col_offset=0), + ast.Import(names=[ast.alias(name='builtins', lineno=1, col_offset=0)], lineno=1, col_offset=0), ast.Import(names=[ast.alias(name='traceback', lineno=0, col_offset=0)], lineno=0, col_offset=1) ], type_ignores=[]) diff --git a/Lib/test/test_except_star.py b/Lib/test/test_except_star.py index 6d6f6043b83b2f..948cb9283319e5 100644 --- a/Lib/test/test_except_star.py +++ b/Lib/test/test_except_star.py @@ -945,7 +945,7 @@ def derive(self, excs): 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)