diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-26 08:34:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 08:34:06 (GMT) |
commit | e87ada48a9e5d9d03f9759138869216df0d7383a (patch) | |
tree | 40a551a7af6d0d6e1cd04705e58aca8462721a9e | |
parent | d4792ce916b94d090b6c7bce8b0f973e840c9e4e (diff) | |
download | cpython-e87ada48a9e5d9d03f9759138869216df0d7383a.zip cpython-e87ada48a9e5d9d03f9759138869216df0d7383a.tar.gz cpython-e87ada48a9e5d9d03f9759138869216df0d7383a.tar.bz2 |
Run Tools/scripts/reindent.py (#94225)
Reindent files which were not properly formatted (PEP 8: 4 spaces).
Remove also some trailing spaces.
-rw-r--r-- | Lib/http/client.py | 2 | ||||
-rw-r--r-- | Lib/test/libregrtest/setup.py | 1 | ||||
-rw-r--r-- | Lib/test/test_ast.py | 4 | ||||
-rw-r--r-- | Lib/test/test_except_star.py | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 4bef50e..0720990 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -956,7 +956,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 4298c92..b76bece 100644 --- a/Lib/test/libregrtest/setup.py +++ b/Lib/test/libregrtest/setup.py @@ -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}.") - diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 33df22c..2258924 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -335,7 +335,7 @@ class AST_Tests(unittest.TestCase): for snippet in snippets_to_validate: tree = ast.parse(snippet) compile(tree, '<string>', 'exec') - + def test_invalid_position_information(self): invalid_linenos = [ (10, 1), (-10, -11), (10, -11), (-5, -2), (-5, 1) @@ -364,7 +364,7 @@ class AST_Tests(unittest.TestCase): 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 490b159..dbe8eff 100644 --- a/Lib/test/test_except_star.py +++ b/Lib/test/test_except_star.py @@ -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) |