hwt/synthesizer/interfaceLevel/propDeclrCollector.py
def nameAvailabilityCheck(obj, propName, prop):
    """
    Check if not redefining property on obj
    """
    if getattr(obj, propName, None) is not None:
        raise IntfLvlConfErr("%r already has property %s old:%s new:%s" % 
                             (obj, propName, repr(getattr(obj, propName)), prop))
def nameAvailabilityCheck(obj, propName, prop):
    if getattr(obj, propName, None) is not None:
        raise IntfLvlConfErr("%r already has property %s old:%s new:%s" % 
                             (obj, propName, repr(getattr(obj, propName)), prop))
def nameAvailabilityCheck ( obj , propName , prop ) : if getattr ( obj , propName , None ) is not None : raise IntfLvlConfErr ( "%r already has property %s old:%s new:%s" % ( obj , propName , repr ( getattr ( obj , propName ) ) , prop ) )
Check if not redefining property on obj
Check if not redefining property on obj