Skip to content

Commit f0f3a42

Browse files
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 e87ada4) Co-authored-by: Victor Stinner <[email protected]>
1 parent 68112c3 commit f0f3a42

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Lib/http/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def connect(self):
942942
(self.host,self.port), self.timeout, self.source_address)
943943
# Might fail in OSs that don't implement TCP_NODELAY
944944
try:
945-
self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
945+
self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
946946
except OSError as e:
947947
if e.errno != errno.ENOPROTOOPT:
948948
raise

Lib/test/libregrtest/setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,3 @@ def _adjust_resource_limits():
157157
except (ValueError, OSError) as err:
158158
print(f"Unable to raise RLIMIT_NOFILE from {fd_limit} to "
159159
f"{new_fd_limit}: {err}.")
160-

Lib/test/test_ast.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def test_ast_validation(self):
335335
for snippet in snippets_to_validate:
336336
tree = ast.parse(snippet)
337337
compile(tree, '<string>', 'exec')
338-
338+
339339
def test_invalid_position_information(self):
340340
invalid_linenos = [
341341
(10, 1), (-10, -11), (10, -11), (-5, -2), (-5, 1)
@@ -364,7 +364,7 @@ def test_invalid_position_information(self):
364364

365365
def test_compilation_of_ast_nodes_with_default_end_position_values(self):
366366
tree = ast.Module(body=[
367-
ast.Import(names=[ast.alias(name='builtins', lineno=1, col_offset=0)], lineno=1, col_offset=0),
367+
ast.Import(names=[ast.alias(name='builtins', lineno=1, col_offset=0)], lineno=1, col_offset=0),
368368
ast.Import(names=[ast.alias(name='traceback', lineno=0, col_offset=0)], lineno=0, col_offset=1)
369369
], type_ignores=[])
370370

Lib/test/test_except_star.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ def derive(self, excs):
955955
def test_falsy_exception_group_subclass(self):
956956
class FalsyEG(ExceptionGroup):
957957
def __bool__(self):
958-
return False
958+
return False
959959

960960
def derive(self, excs):
961961
return FalsyEG(self.message, excs)

0 commit comments

Comments
 (0)