old_contents: # Tai Sakuma <tai.sakuma@cern.ch>
  import sys
  
  from ..ProgressBar import ProgressBar
  from ..ProgressBar import ProgressPrint
  from ..ProgressBar import ProgressMonitor, BProgressMonitor, NullProgressMonitor
  from ..Concurrently import CommunicationChannel
  from ..Concurrently import CommunicationChannel0
  
  ##__________________________________________________________________||
  def build_progressMonitor_communicationChannel(quiet, processes):
  
      if quiet:
          progressBar = None
      elif sys.stdout.isatty():
          progressBar = ProgressBar()
      else:
          progressBar = ProgressPrint()
  
      if processes is None or processes == 0:
          progressMonitor = NullProgressMonitor() if quiet else ProgressMonitor(presentation = progressBar)
          communicationChannel = CommunicationChannel0(progressMonitor)
      else:
          progressMonitor = NullProgressMonitor() if quiet else BProgressMonitor(presentation = progressBar)
          communicationChannel = CommunicationChannel(processes, progressMonitor)
  
      return progressMonitor, communicationChannel
  
  ##__________________________________________________________________||
  
new_contents: # Tai Sakuma <tai.sakuma@cern.ch>
  import sys
  
  from .. import ProgressBar
  from .. import Concurrently
  
  ##__________________________________________________________________||
  def build_progressMonitor_communicationChannel(quiet, processes):
  
      if quiet:
          progressBar = None
      elif sys.stdout.isatty():
          progressBar = ProgressBar.ProgressBar()
      else:
          progressBar = ProgressBar.ProgressPrint()
  
      if processes is None or processes == 0:
          progressMonitor = ProgressBar.NullProgressMonitor() if quiet else ProgressBar.ProgressMonitor(presentation = progressBar)
          communicationChannel = Concurrently.CommunicationChannel0(progressMonitor)
      else:
          progressMonitor = ProgressBar.NullProgressMonitor() if quiet else ProgressBar.BProgressMonitor(presentation = progressBar)
          communicationChannel = Concurrently.CommunicationChannel(processes, progressMonitor)
  
      return progressMonitor, communicationChannel
  
  ##__________________________________________________________________||
  
subject: update import