Skip to content

Commit ae36b7b

Browse files
committed
Fix indentation of many ast_error() calls
1 parent ee95fef commit ae36b7b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Python/ast.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ get_operator(struct compiling *c, const node *n)
979979
case AT:
980980
if (c->c_feature_version < 5) {
981981
ast_error(c, n,
982-
"The '@' operator is only supported in Python 3.5 and greater");
982+
"The '@' operator is only supported in Python 3.5 and greater");
983983
return (operator_ty)0;
984984
}
985985
return MatMult;
@@ -1218,7 +1218,7 @@ ast_for_augassign(struct compiling *c, const node *n)
12181218
case '@':
12191219
if (c->c_feature_version < 5) {
12201220
ast_error(c, n,
1221-
"The '@' operator is only supported in Python 3.5 and greater");
1221+
"The '@' operator is only supported in Python 3.5 and greater");
12221222
return (operator_ty)0;
12231223
}
12241224
return MatMult;
@@ -1530,7 +1530,7 @@ ast_for_arguments(struct compiling *c, const node *n)
15301530
}
15311531
else if (found_default) {
15321532
ast_error(c, n,
1533-
"non-default argument follows default argument");
1533+
"non-default argument follows default argument");
15341534
return NULL;
15351535
}
15361536
arg = ast_for_arg(c, ch);
@@ -2060,7 +2060,7 @@ ast_for_comprehension(struct compiling *c, const node *n)
20602060
/* Async comprehensions only allowed in Python 3.6 and greater */
20612061
if (is_async && c->c_feature_version < 6) {
20622062
ast_error(c, n,
2063-
"Async comprehensions are only supported in Python 3.6 and greater");
2063+
"Async comprehensions are only supported in Python 3.6 and greater");
20642064
return NULL;
20652065
}
20662066

@@ -2363,7 +2363,7 @@ ast_for_atom(struct compiling *c, const node *n)
23632363
/* Check for underscores here rather than in parse_number so we can report a line number on error */
23642364
if (c->c_feature_version < 6 && strchr(STR(ch), '_') != NULL) {
23652365
ast_error(c, ch,
2366-
"Underscores in numeric literals are only supported in Python 3.6 and greater");
2366+
"Underscores in numeric literals are only supported in Python 3.6 and greater");
23672367
return NULL;
23682368
}
23692369
pynum = parsenumber(c, STR(ch));
@@ -2449,8 +2449,8 @@ ast_for_atom(struct compiling *c, const node *n)
24492449
TYPE(CHILD(ch, 3 - is_dict)) == comp_for) {
24502450
/* It's a dictionary comprehension. */
24512451
if (is_dict) {
2452-
ast_error(c, n, "dict unpacking cannot be used in "
2453-
"dict comprehension");
2452+
ast_error(c, n,
2453+
"dict unpacking cannot be used in dict comprehension");
24542454
return NULL;
24552455
}
24562456
res = ast_for_dictcomp(c, ch);
@@ -2710,7 +2710,7 @@ ast_for_atom_expr(struct compiling *c, const node *n)
27102710
if (TYPE(CHILD(n, 0)) == AWAIT) {
27112711
if (c->c_feature_version < 5) {
27122712
ast_error(c, n,
2713-
"Await expressions are only supported in Python 3.5 and greater");
2713+
"Await expressions are only supported in Python 3.5 and greater");
27142714
return NULL;
27152715
}
27162716
start = 1;
@@ -3270,7 +3270,7 @@ ast_for_expr_stmt(struct compiling *c, const node *n)
32703270
/* AnnAssigns are only allowed in Python 3.6 or greater */
32713271
if (c->c_feature_version < 6) {
32723272
ast_error(c, ch,
3273-
"Variable annotation syntax is only supported in Python 3.6 and greater");
3273+
"Variable annotation syntax is only supported in Python 3.6 and greater");
32743274
return NULL;
32753275
}
32763276

@@ -4094,7 +4094,7 @@ ast_for_for_stmt(struct compiling *c, const node *n0, bool is_async)
40944094

40954095
if (is_async && c->c_feature_version < 5) {
40964096
ast_error(c, n,
4097-
"Async for loops are only supported in Python 3.5 and greater");
4097+
"Async for loops are only supported in Python 3.5 and greater");
40984098
return NULL;
40994099
}
41004100

@@ -4328,7 +4328,7 @@ ast_for_with_stmt(struct compiling *c, const node *n0, bool is_async)
43284328

43294329
if (is_async && c->c_feature_version < 5) {
43304330
ast_error(c, n,
4331-
"Async with statements are only supported in Python 3.5 and greater");
4331+
"Async with statements are only supported in Python 3.5 and greater");
43324332
return NULL;
43334333
}
43344334

0 commit comments

Comments
 (0)