diff --git a/tconfpy.py b/tconfpy.py index 0765e49..66c8610 100755 --- a/tconfpy.py +++ b/tconfpy.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tconfpy" -RCSID = "$Id: tconfpy.py,v 2.107 2005/01/19 11:08:24 tundra Exp $" +RCSID = "$Id: tconfpy.py,v 2.108 2005/01/19 23:03:25 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -431,16 +431,11 @@ else: # Load the symbol table - - for sym in InitialSymTable.Symbols: - SymTable.Symbols[sym] = InitialSymTable.Symbols[sym] + SymTable.Symbols = copy.copy(InitialSymTable.Symbols) # Load the template table - - for sym in Templates.Symbols: - SymTable.Templates.Symbols[sym] = Templates.Symbols[sym] + SymTable.Templates.Symbols = copy.copy(Templates.Symbols) - # Initialize the globals @@ -526,7 +521,18 @@ del SymTable.Symbols[sym] - return SymTable + # Now populate a return symbol table containing only the stuff we + # actually want + + retval = SymbolTable() + + retval.Symbols = copy.copy(SymTable.Symbols) + retval.DebugMsgs = copy.copy(SymTable.DebugMsgs) + retval.ErrMsgs = copy.copy(SymTable.ErrMsgs) + retval.WarnMsgs = copy.copy(SymTable.WarnMsgs) + retval.LiteralLines = copy.copy(SymTable.LiteralLines) + + return retval # End of 'ParseConfig()'