]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Run Tools/scripts/reindent.py (#94225)
authorVictor Stinner <vstinner@python.org>
Sun, 26 Jun 2022 08:34:06 +0000 (10:34 +0200)
committerGitHub <noreply@github.com>
Sun, 26 Jun 2022 08:34:06 +0000 (10:34 +0200)
Reindent files which were not properly formatted (PEP 8: 4 spaces).

Remove also some trailing spaces.

Lib/http/client.py
Lib/test/libregrtest/setup.py
Lib/test/test_ast.py
Lib/test/test_except_star.py

index 4bef50e6474d49e42f076b62114435f9d95b1dd2..0720990f84e7ed31ea0d201db3ddd0d909c55e08 100644 (file)
@@ -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
index 4298c922723407503de327b9160322dd74ee18a8..b76bece7ca08b528b3624ca9152516c731b2a848 100644 (file)
@@ -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}.")
-
index 33df22cb35a9e27d0090c26603ccefbdfb8407bf..225892414b8c19ad39bfff143aebfb19c42001ce 100644 (file)
@@ -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=[])
 
index 490b159e3b71b26d107848236257b5d0a5c2a8b4..dbe8eff32924ed49c7207ab568054e93879b85ed 100644 (file)
@@ -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)