Skip to content

Commit f8d83b6

Browse files
pablogsallysnikolaoupicnixz
authored
Apply suggestions from code review
Co-authored-by: Lysandros Nikolaou <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 6da8eaa commit f8d83b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Using ``from __future__ import barry_as_FLUFL`` works now when using
2-
multiple statements on the same line. Additionally the effect is respected
3-
even if the import is used even if the flags are not passed to
2+
multiple statements on the same line. Additionally, the effect is respected
3+
even if the import is used but flags are not passed to
44
:func:`compile`. Patch by Pablo Galindo

Parser/action_helpers.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,8 +1694,8 @@ _PyPegen_concatenate_strings(Parser *p, asdl_expr_seq *strings,
16941694

16951695
stmt_ty
16961696
_PyPegen_checked_future_import(Parser *p, identifier module, asdl_alias_seq * names, int level,
1697-
int lineno, int col_offset, int end_lineno, int end_col_offset,
1698-
PyArena *arena) {
1697+
int lineno, int col_offset, int end_lineno, int end_col_offset,
1698+
PyArena *arena) {
16991699
if (PyUnicode_CompareWithASCIIString(module, "__future__") == 0) {
17001700
for (Py_ssize_t i = 0; i < asdl_seq_LEN(names); i++) {
17011701
alias_ty alias = asdl_seq_GET(names, i);
@@ -1705,4 +1705,4 @@ _PyPegen_checked_future_import(Parser *p, identifier module, asdl_alias_seq * na
17051705
}
17061706
}
17071707
return _PyAST_ImportFrom(module, names, level, lineno, col_offset, end_lineno, end_col_offset, arena);
1708-
}
1708+
}

0 commit comments

Comments
 (0)