def default_signal_map():
 name_map = {'SIGTSTP': None, 'SIGTTIN': None, 'SIGTTOU': None, 'SIGTERM': 'terminate'}
 signal_map = {}
 for (name, target) in list(name_map.items()):
  if hasattr(signal, name):
   signal_map[getattr(signal, name)] = target
 return signal_map

def default_signal_map ( ) : name_map = { 'SIGTSTP' : None , 'SIGTTIN' : None , 'SIGTTOU' : None , 'SIGTERM' : 'terminate' } signal_map = { } for ( name , target ) in list ( name_map . items ( ) ) : if hasattr ( signal , name ) : signal_map [ getattr ( signal , name ) ] = target return signal_map
create the default signal map for this system .