def _format_master(service, conn_type, private, unpriv, chroot, wakeup, maxproc, command):
 if (private == 'y'):
  private = '-'
 if (unpriv == 'y'):
  unpriv = '-'
 if (chroot == 'y'):
  chroot = '-'
 if (wakeup == 'n'):
  wakeup = '-'
 maxproc = str(maxproc)
 if (maxproc == '100'):
  maxproc = '-'
 conf_line = '{0:9s} {1:5s} {2:7s} {3:7s} {4:7s} {5:7s} {6:7s} {7}'.format(service, conn_type, private, unpriv, chroot, wakeup, maxproc, command)
 return conf_line

def _format_master ( service , conn_type , private , unpriv , chroot , wakeup , maxproc , command ) : if ( private == 'y' ) : private = '-' if ( unpriv == 'y' ) : unpriv = '-' if ( chroot == 'y' ) : chroot = '-' if ( wakeup == 'n' ) : wakeup = '-' maxproc = str ( maxproc ) if ( maxproc == '100' ) : maxproc = '-' conf_line = '{0:9s} {1:5s} {2:7s} {3:7s} {4:7s} {5:7s} {6:7s} {7}' . format ( service , conn_type , private , unpriv , chroot , wakeup , maxproc , command ) return conf_line
format the given values into the style of line normally used in the master .