We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b74c83 commit b94dbd7Copy full SHA for b94dbd7
Lib/test/test_codeop.py
@@ -122,7 +122,6 @@ def test_valid(self):
122
av("def f():\n pass\n#foo\n")
123
av("@a.b.c\ndef f():\n pass\n")
124
125
- @support.skip_if_new_parser("Pegen does not support PyCF_DONT_INPLY_DEDENT yet")
126
def test_incomplete(self):
127
ai = self.assertIncomplete
128
Parser/pegen/pegen.c
@@ -553,7 +553,7 @@ _PyPegen_fill_token(Parser *p)
553
type = NEWLINE; /* Add an extra newline */
554
p->parsing_started = 0;
555
556
- if (p->tok->indent) {
+ if (p->tok->indent && !(p->flags & PyPARSE_DONT_IMPLY_DEDENT)) {
557
p->tok->pendin = -p->tok->indent;
558
p->tok->indent = 0;
559
}
0 commit comments