def control_ttyhup(port, disable_hup):
 if (platform.system() == 'Linux'):
  if disable_hup:
   os.system(('stty -F %s -hup' % port))
  else:
   os.system(('stty -F %s hup' % port))

def control_ttyhup ( port , disable_hup ) : if ( platform . system ( ) == 'Linux' ) : if disable_hup : os . system ( ( 'stty -F %s -hup' % port ) ) else : os . system ( ( 'stty -F %s hup' % port ) )
controls the hupcl .