diff --git a/tconfpy.py b/tconfpy.py index cee5692..b954372 100755 --- a/tconfpy.py +++ b/tconfpy.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tconfpy" -RCSID = "$Id: tconfpy.py,v 1.136 2004/03/24 22:25:47 tundra Exp $" +RCSID = "$Id: tconfpy.py,v 1.137 2004/03/24 22:32:53 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -236,6 +236,7 @@ Messages["eEQUIVEXTRA"] = FILENUM + "Only a single '%s' Or '%s' Operator Permitted" % (EQUIV, NOTEQUIV) Messages["eIFEXTRATXT"] = FILENUM + "Extra Text On Line. '%s' Only Accepts Variable References As Arguments" Messages["eVARREADONLY"] = FILENUM + "Variable '%s' Is Read-Only. Cannot Change Its Value" +Messages["eRESERVED"] = FILENUM + "Cannot Modify Value Of Reserved Symbol '%s'" Messages["eVARUNDEF"] = FILENUM + "Attempt To Reference Undefined Variable '%s'" @@ -787,8 +788,12 @@ ErrorMsg("eVARREADONLY", (cfgfile, linenum, l)) - # Load variable into the symbol table + # Suppress any attempt to change a Reserved symbol + elif l in Reserved: + ErrorMsg("eRESERVED", (cfgfile, linenum, l)) + + # Load variable into the symbol table else: # Munge the variable name to incoroprate