Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite87ada4

Browse files
authored
Run Tools/scripts/reindent.py (#94225)
Reindent files which were not properly formatted (PEP 8: 4 spaces).Remove also some trailing spaces.
1 parentd4792ce commite87ada4

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

‎Lib/http/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ def connect(self):
956956
(self.host,self.port),self.timeout,self.source_address)
957957
# Might fail in OSs that don't implement TCP_NODELAY
958958
try:
959-
self.sock.setsockopt(socket.IPPROTO_TCP,socket.TCP_NODELAY,1)
959+
self.sock.setsockopt(socket.IPPROTO_TCP,socket.TCP_NODELAY,1)
960960
exceptOSErrorase:
961961
ife.errno!=errno.ENOPROTOOPT:
962962
raise

‎Lib/test/libregrtest/setup.py‎

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

‎Lib/test/test_ast.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def test_ast_validation(self):
335335
forsnippetinsnippets_to_validate:
336336
tree=ast.parse(snippet)
337337
compile(tree,'<string>','exec')
338-
338+
339339
deftest_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
deftest_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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ def derive(self, excs):
955955
deftest_falsy_exception_group_subclass(self):
956956
classFalsyEG(ExceptionGroup):
957957
def__bool__(self):
958-
returnFalse
958+
returnFalse
959959

960960
defderive(self,excs):
961961
returnFalsyEG(self.message,excs)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp