diff --git a/tconfpy.py b/tconfpy.py index cef9438..45f1782 100755 --- a/tconfpy.py +++ b/tconfpy.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tconfpy" -RCSID = "$Id: tconfpy.py,v 1.128 2004/03/21 14:10:52 tundra Exp $" +RCSID = "$Id: tconfpy.py,v 1.129 2004/03/21 14:25:20 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -246,7 +246,6 @@ Messages["wENDLITMISS"] = FILENUM + "Missing '%s' Statement. All lines treated literally to end-of-file." % ENDLITERAL Messages["wEXTRATEXT"] = FILENUM + " '%s' Statements Only Process Variables. Extra Text Ignored" -Messages["wTRAILING"] = FILENUM + " Trailing Text After '%s' Statement Ignored" # Determine Length Of Longest Message Type @@ -543,11 +542,7 @@ # because ENDIF can change parser state ##### - if FIRSTTOK == ENDIF: - - # This should be the only thing on the line - if line != ENDIF: - WarningMsg("wTRAILING", (cfgfile, linenum, ENDIF)) + if line == ENDIF: # Remove one level of conditional nesting CondStack.pop()