Skip to content

Commit 25b2f17

Browse files
committed
ruff
1 parent ccebd33 commit 25b2f17

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

python_files/normalizeSelection.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
attach_bracket_paste = sys.version_info >= (3, 13)
1212

13+
1314
def split_lines(source):
1415
"""
1516
Split selection lines in a version-agnostic way.
@@ -280,14 +281,20 @@ def get_next_block_lineno(which_line_next):
280281
normalized = result["normalized_smart_result"]
281282
which_line_next = result["which_line_next"]
282283
if normalized == "deprecated":
283-
data = json.dumps({"normalized": normalized, "attach_bracket_paste": attach_bracket_paste})
284+
data = json.dumps(
285+
{"normalized": normalized, "attach_bracket_paste": attach_bracket_paste}
286+
)
284287
else:
285288
data = json.dumps(
286-
{"normalized": normalized, "nextBlockLineno": result["which_line_next"], "attach_bracket_paste": attach_bracket_paste}
289+
{
290+
"normalized": normalized,
291+
"nextBlockLineno": result["which_line_next"],
292+
"attach_bracket_paste": attach_bracket_paste,
293+
}
287294
)
288295
else:
289296
normalized = normalize_lines(contents["code"])
290-
data = json.dumps({"normalized": normalized, "attach_bracket_paste": attach_bracket_paste })
297+
data = json.dumps({"normalized": normalized, "attach_bracket_paste": attach_bracket_paste})
291298

292299
stdout = sys.stdout if sys.version_info < (3,) else sys.stdout.buffer
293300
stdout.write(data.encode("utf-8"))

0 commit comments

Comments
 (0)