Mercurial > lcfOS
diff python/ks/symboltable.py @ 182:e9b27f7193e3
Replace clear function by function also supported in python 3.2
author | Windel Bouwman |
---|---|
date | Sat, 18 May 2013 18:24:42 +0200 |
parents | 91af0e40f868 |
children |
line wrap: on
line diff
--- a/python/ks/symboltable.py Sat May 18 17:45:26 2013 +0200 +++ b/python/ks/symboltable.py Sat May 18 18:24:42 2013 +0200 @@ -1,5 +1,4 @@ from .nodes import * -from ...core.errors import Error class SymbolTable: """ @@ -67,7 +66,7 @@ if self.parent: return self.parent.getSymbol(name) else: - Error('Symbol "{0}" undeclared!'.format(name)) + raise Exception('Symbol "{0}" undeclared!'.format(name)) def hasSymbol(self, name): if name in self.syms.keys():