1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 67 unchanged lines hidden (view full) --- 76 try: 77 symbol = sym_map[ident] 78 except KeyError: 79 continue 80 81 if types is not None: 82 if not isinstance(symbol, types): 83 symbol.error("Symbol '%s' is not of types '%s'.", |
84 symbol, types) |
85 86 return symbol 87 88 return None 89 90 def newMachComponentSym(self, symbol): 91 # used to cheat-- that is, access components in other machines 92 machine = self.find("current_machine", StateMachine) --- 82 unchanged lines hidden --- |