[Python-checkins] r51816 - python/trunk/Doc/perl/python.perl

armin.rigo python-checkins at python.org
Thu Sep 7 17:06:54 CEST 2006


Author: armin.rigo
Date: Thu Sep  7 17:06:00 2006
New Revision: 51816

Modified:
   python/trunk/Doc/perl/python.perl
Log:
Add a warning notice on top of the generated grammar.txt.


Modified: python/trunk/Doc/perl/python.perl
==============================================================================
--- python/trunk/Doc/perl/python.perl	(original)
+++ python/trunk/Doc/perl/python.perl	Thu Sep  7 17:06:00 2006
@@ -883,6 +883,12 @@
             $filename = 'grammar.txt';
         }
         open(GRAMMAR, ">$filename") || die "\n$!\n";
+        print GRAMMAR "##################################################\n";
+        print GRAMMAR "#     This file is only meant to be a guide,     #\n";
+        print GRAMMAR "#    and differs in small ways from the real     #\n";
+        print GRAMMAR "#   grammar.  The exact reference is the file    #\n";
+        print GRAMMAR "#  Grammar/Grammar distributed with the source.  #\n";
+        print GRAMMAR "##################################################\n";
         print GRAMMAR strip_grammar_markup($DefinedGrammars{$lang});
         close(GRAMMAR);
         print "Wrote grammar file $filename\n";


More information about the Python-checkins mailing list