summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorEmmanuel Arias <eamanu@yaerobi.com>2020-01-13 11:58:52 (GMT)
committerPablo Galindo <Pablogsal@gmail.com>2020-01-13 11:58:52 (GMT)
commitd23f78267a9082b6a8fa63ef601fdf9669e57ede (patch)
tree79afce5a1821c73f0bc81da4f07c2b2fea87b8b5 /Parser
parent0b2ab21956fbab8eab6d064060d4544499730316 (diff)
downloadcpython-d23f78267a9082b6a8fa63ef601fdf9669e57ede.zip
cpython-d23f78267a9082b6a8fa63ef601fdf9669e57ede.tar.gz
cpython-d23f78267a9082b6a8fa63ef601fdf9669e57ede.tar.bz2
Remove unused functions in Parser/parsetok.c (GH-17365)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parsetok.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 2bb733d..b0b1bd3 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -207,24 +207,6 @@ PyParser_ParseFileFlagsEx(FILE *fp, const char *filename,
return n;
}
-#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
-#if 0
-static const char with_msg[] =
-"%s:%d: Warning: 'with' will become a reserved keyword in Python 2.6\n";
-
-static const char as_msg[] =
-"%s:%d: Warning: 'as' will become a reserved keyword in Python 2.6\n";
-
-static void
-warn(const char *msg, const char *filename, int lineno)
-{
- if (filename == NULL)
- filename = "<string>";
- PySys_WriteStderr(msg, filename, lineno);
-}
-#endif
-#endif
-
/* Parse input coming from the given tokenizer structure.
Return error code. */