Skip to content

Commit 5c87ac3

Browse files
committed
Run Tools/scripts/reindent.py (python#94225)
Reindent files which were not properly formatted (PEP 8: 4 spaces). Remove also some trailing spaces. (cherry picked from commit e87ada4)
1 parent 70d8b30 commit 5c87ac3

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
@@ -946,7 +946,7 @@ def connect(self):
946946
(self.host,self.port), self.timeout, self.source_address)
947947
# Might fail in OSs that don't implement TCP_NODELAY
948948
try:
949-
self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
949+
self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
950950
except OSError as e:
951951
if e.errno != errno.ENOPROTOOPT:
952952
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
@@ -336,7 +336,7 @@ def test_ast_validation(self):
336336
for snippet in snippets_to_validate:
337337
tree = ast.parse(snippet)
338338
compile(tree, '<string>', 'exec')
339-
339+
340340
def test_invalid_position_information(self):
341341
invalid_linenos = [
342342
(10, 1), (-10, -11), (10, -11), (-5, -2), (-5, 1)
@@ -365,7 +365,7 @@ def test_invalid_position_information(self):
365365

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

Lib/test/test_except_star.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ def derive(self, excs):
945945
def test_falsy_exception_group_subclass(self):
946946
class FalsyEG(ExceptionGroup):
947947
def __bool__(self):
948-
return False
948+
return False
949949

950950
def derive(self, excs):
951951
return FalsyEG(self.message, excs)

0 commit comments

Comments
 (0)