Skip to content

Commit 61fab3f

Browse files
committed
remove excess whitespace
1 parent d8cc6e8 commit 61fab3f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Lib/test/test_traceback.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ def test_exception_group_width_limit(self):
14671467
' +---------------- 15 ----------------\n'
14681468
' | ValueError: 14\n'
14691469
' +---------------- ... ----------------\n'
1470-
' | and 985 more exceptions\n'
1470+
' | and 985 more exceptions\n'
14711471
' +------------------------------------\n')
14721472

14731473
report = self.get_report(eg)
@@ -1520,7 +1520,7 @@ def test_exception_group_depth_limit(self):
15201520
' +-+---------------- 1 ----------------\n'
15211521
' | ValueError: 990\n'
15221522
' +---------------- 2 ----------------\n'
1523-
' | ... (max_group_depth is 10)\n'
1523+
' | ... (max_group_depth is 10)\n'
15241524
' +---------------- 3 ----------------\n'
15251525
' | ValueError: -990\n'
15261526
' +------------------------------------\n'
@@ -2361,7 +2361,7 @@ def test_max_group_width(self):
23612361
f' +---------------- 2 ----------------',
23622362
f' | ValueError: 1',
23632363
f' +---------------- ... ----------------',
2364-
f' | and 1 more exception',
2364+
f' | and 1 more exception',
23652365
f' +------------------------------------',
23662366
f' +---------------- 2 ----------------',
23672367
f' | ExceptionGroup: eg2',
@@ -2370,7 +2370,7 @@ def test_max_group_width(self):
23702370
f' +---------------- 2 ----------------',
23712371
f' | TypeError: 1',
23722372
f' +---------------- ... ----------------',
2373-
f' | and 8 more exceptions',
2373+
f' | and 8 more exceptions',
23742374
f' +------------------------------------',
23752375
f'']
23762376

@@ -2393,7 +2393,7 @@ def test_max_group_depth(self):
23932393
f' +-+---------------- 1 ----------------',
23942394
f' | ValueError: -1',
23952395
f' +---------------- 2 ----------------',
2396-
f' | ... (max_group_depth is 2)',
2396+
f' | ... (max_group_depth is 2)',
23972397
f' +---------------- 3 ----------------',
23982398
f' | ValueError: 1',
23992399
f' +------------------------------------',

Lib/traceback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ def format(self, *, chain=True, _ctx=None):
898898
elif _ctx.exception_group_depth > self.max_group_depth:
899899
# exception group, but depth exceeds limit
900900
yield from _ctx.emit(
901-
f" ... (max_group_depth is {self.max_group_depth})\n")
901+
f"... (max_group_depth is {self.max_group_depth})\n")
902902
else:
903903
# format exception group
904904
is_toplevel = (_ctx.exception_group_depth == 0)
@@ -939,7 +939,7 @@ def format(self, *, chain=True, _ctx=None):
939939
remaining = num_excs - self.max_group_width
940940
plural = 's' if remaining > 1 else ''
941941
yield from _ctx.emit(
942-
f" and {remaining} more exception{plural}\n")
942+
f"and {remaining} more exception{plural}\n")
943943

944944
if last_exc and _ctx.need_close:
945945
yield (_ctx.indent() +

Python/pythonrun.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ print_exception_recursive(struct exception_print_context* ctx, PyObject *value)
11991199
/* exception group but depth exceeds limit */
12001200

12011201
PyObject *line = PyUnicode_FromFormat(
1202-
" ... (max_group_depth is %d)\n", ctx->max_group_depth);
1202+
"... (max_group_depth is %d)\n", ctx->max_group_depth);
12031203

12041204
if (line) {
12051205
PyObject *f = ctx->file;
@@ -1286,7 +1286,7 @@ print_exception_recursive(struct exception_print_context* ctx, PyObject *value)
12861286
else {
12871287
Py_ssize_t excs_remaining = num_excs - ctx->max_group_width;
12881288
PyObject *line = PyUnicode_FromFormat(
1289-
" and %zd more exception%s\n",
1289+
"and %zd more exception%s\n",
12901290
excs_remaining, excs_remaining > 1 ? "s" : "");
12911291

12921292
if (line) {

0 commit comments

Comments
 (0)