Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Tools/scripts/reindent.py #94225

Merged
merged 3 commits into from
Jun 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Run Tools/scripts/reindent.py
Reindent files which were not properly formatted (PEP 8: 4 spaces).

Remove also some trailing spaces.

Leave Lib/test/coding20731.py and Tools/c-analyzer/ unchanged.
  • Loading branch information
vstinner committed Jun 24, 2022

Unverified

This user has not yet uploaded their public signing key.
commit f3215d2d9d6789b59002527f833f1fb427093056
2 changes: 1 addition & 1 deletion Lib/http/client.py
Original file line number Diff line number Diff line change
@@ -956,7 +956,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
2 changes: 1 addition & 1 deletion Lib/idlelib/iomenu.py
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
else:
errors = 'surrogateescape'


class IOBinding:
# One instance per editor Window so methods know which to save, close.
# Open returns focus to self.editwin if aborted.
1 change: 0 additions & 1 deletion Lib/test/libregrtest/setup.py
Original file line number Diff line number Diff line change
@@ -157,4 +157,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}.")

4 changes: 2 additions & 2 deletions Lib/test/test_ast.py
Original file line number Diff line number Diff line change
@@ -335,7 +335,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)
@@ -364,7 +364,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=[])

2 changes: 1 addition & 1 deletion Lib/test/test_enum.py
Original file line number Diff line number Diff line change
@@ -4081,7 +4081,7 @@ class Color(enum.Enum)
|\x20\x20
| __contains__(value) from enum.EnumType
| Return True if `value` is in `cls`.
|
|
| `value` is in `cls` if:
| 1) `value` is a member of `cls`, or
| 2) `value` is the value of one of the `cls`'s members.
2 changes: 1 addition & 1 deletion Lib/test/test_except_star.py
Original file line number Diff line number Diff line change
@@ -955,7 +955,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)