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

Remove also some trailing spaces.

(cherry picked from commit e87ada48a9e5d9d03f9759138869216df0d7383a)

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

index a6ab135b2c3879b588bc24f8fa4c267180d51348..28527fa8786eed9a4ed54812f884aab5d54ac351 100644 (file)
@@ -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
index 0bfd644bb3179d3d157dd0a2735fa2d1e7c513f5..964c25e39700f4f58cf00e61f23c4dca4832bef4 100644 (file)
@@ -158,4 +158,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}.")
-