Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d23f782

Browse files
eamanupablogsal
authored andcommitted
Remove unused functions in Parser/parsetok.c (GH-17365)
1 parent 0b2ab21 commit d23f782

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

Parser/parsetok.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -207,24 +207,6 @@ PyParser_ParseFileFlagsEx(FILE *fp, const char *filename,
207207
return n;
208208
}
209209

210-
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
211-
#if 0
212-
static const char with_msg[] =
213-
"%s:%d: Warning: 'with' will become a reserved keyword in Python 2.6\n";
214-
215-
static const char as_msg[] =
216-
"%s:%d: Warning: 'as' will become a reserved keyword in Python 2.6\n";
217-
218-
static void
219-
warn(const char *msg, const char *filename, int lineno)
220-
{
221-
if (filename == NULL)
222-
filename = "<string>";
223-
PySys_WriteStderr(msg, filename, lineno);
224-
}
225-
#endif
226-
#endif
227-
228210
/* Parse input coming from the given tokenizer structure.
229211
Return error code. */
230212

0 commit comments

Comments
 (0)