[Python-checkins] r43065 - python/branches/p3yk/Parser/parsetok.c

neal.norwitz python-checkins at python.org
Thu Mar 16 07:01:26 CET 2006


Author: neal.norwitz
Date: Thu Mar 16 07:01:25 2006
New Revision: 43065

Modified:
   python/branches/p3yk/Parser/parsetok.c
Log:
Get rid of compiler warning about with_msg and as_msg being unused

Modified: python/branches/p3yk/Parser/parsetok.c
==============================================================================
--- python/branches/p3yk/Parser/parsetok.c	(original)
+++ python/branches/p3yk/Parser/parsetok.c	Thu Mar 16 07:01:25 2006
@@ -92,11 +92,13 @@
 /* Parse input coming from the given tokenizer structure.
    Return error code. */
 
+#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
 static char with_msg[] =
 "%s:%d: Warning: 'with' will become a reserved keyword in Python 2.6\n";
 
 static char as_msg[] =
 "%s:%d: Warning: 'as' will become a reserved keyword in Python 2.6\n";
+#endif
 
 static void
 warn(const char *msg, const char *filename, int lineno)


More information about the Python-checkins mailing list