@@ -979,7 +979,7 @@ get_operator(struct compiling *c, const node *n)
979
979
case AT :
980
980
if (c -> c_feature_version < 5 ) {
981
981
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" );
983
983
return (operator_ty )0 ;
984
984
}
985
985
return MatMult ;
@@ -1218,7 +1218,7 @@ ast_for_augassign(struct compiling *c, const node *n)
1218
1218
case '@' :
1219
1219
if (c -> c_feature_version < 5 ) {
1220
1220
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" );
1222
1222
return (operator_ty )0 ;
1223
1223
}
1224
1224
return MatMult ;
@@ -1530,7 +1530,7 @@ ast_for_arguments(struct compiling *c, const node *n)
1530
1530
}
1531
1531
else if (found_default ) {
1532
1532
ast_error (c , n ,
1533
- "non-default argument follows default argument" );
1533
+ "non-default argument follows default argument" );
1534
1534
return NULL ;
1535
1535
}
1536
1536
arg = ast_for_arg (c , ch );
@@ -2060,7 +2060,7 @@ ast_for_comprehension(struct compiling *c, const node *n)
2060
2060
/* Async comprehensions only allowed in Python 3.6 and greater */
2061
2061
if (is_async && c -> c_feature_version < 6 ) {
2062
2062
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" );
2064
2064
return NULL ;
2065
2065
}
2066
2066
@@ -2363,7 +2363,7 @@ ast_for_atom(struct compiling *c, const node *n)
2363
2363
/* Check for underscores here rather than in parse_number so we can report a line number on error */
2364
2364
if (c -> c_feature_version < 6 && strchr (STR (ch ), '_' ) != NULL ) {
2365
2365
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" );
2367
2367
return NULL ;
2368
2368
}
2369
2369
pynum = parsenumber (c , STR (ch ));
@@ -2449,8 +2449,8 @@ ast_for_atom(struct compiling *c, const node *n)
2449
2449
TYPE (CHILD (ch , 3 - is_dict )) == comp_for ) {
2450
2450
/* It's a dictionary comprehension. */
2451
2451
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" );
2454
2454
return NULL ;
2455
2455
}
2456
2456
res = ast_for_dictcomp (c , ch );
@@ -2710,7 +2710,7 @@ ast_for_atom_expr(struct compiling *c, const node *n)
2710
2710
if (TYPE (CHILD (n , 0 )) == AWAIT ) {
2711
2711
if (c -> c_feature_version < 5 ) {
2712
2712
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" );
2714
2714
return NULL ;
2715
2715
}
2716
2716
start = 1 ;
@@ -3270,7 +3270,7 @@ ast_for_expr_stmt(struct compiling *c, const node *n)
3270
3270
/* AnnAssigns are only allowed in Python 3.6 or greater */
3271
3271
if (c -> c_feature_version < 6 ) {
3272
3272
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" );
3274
3274
return NULL ;
3275
3275
}
3276
3276
@@ -4094,7 +4094,7 @@ ast_for_for_stmt(struct compiling *c, const node *n0, bool is_async)
4094
4094
4095
4095
if (is_async && c -> c_feature_version < 5 ) {
4096
4096
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" );
4098
4098
return NULL ;
4099
4099
}
4100
4100
@@ -4328,7 +4328,7 @@ ast_for_with_stmt(struct compiling *c, const node *n0, bool is_async)
4328
4328
4329
4329
if (is_async && c -> c_feature_version < 5 ) {
4330
4330
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" );
4332
4332
return NULL ;
4333
4333
}
4334
4334
0 commit comments