Skip to content

Commit

Permalink
Revert "Run Tools/scripts/reindent.py (pythonGH-94225)"
Browse files Browse the repository at this point in the history
This reverts commit f0f3a42.
  • Loading branch information
vstinner committed Sep 2, 2023
1 parent 57c050e commit f8e8df3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Lib/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ def connect(self):
(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
Expand Down
1 change: 1 addition & 0 deletions Lib/test/libregrtest/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,4 @@ 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}.")

4 changes: 2 additions & 2 deletions Lib/test/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def test_ast_validation(self):
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)
Expand Down Expand Up @@ -365,7 +365,7 @@ def test_invalid_position_information(self):

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=[])

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_except_star.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ def derive(self, excs):
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)
Expand Down

0 comments on commit f8e8df3

Please sign in to comment.