'Make the signal handler for a specified target object.
If `target` is ``None``, returns ``signal.SIG_IGN``. If
`target` is a string, returns the attribute of this
instance named by that string. Otherwise, returns `target`
itself.'

def _make_signal_handler(self, target):

    if (target is None):
        result = signal.SIG_IGN
    elif isinstance(target, basestring):
        name = target
        result = getattr(self, name)
    else:
        result = target
    return result
