code: def confirm_push(self, coord, version):
      
      if not self.get_options().prompt:
        return True
      try:
        isatty = os.isatty(sys.stdin.fileno())
      except ValueError:
        # In tests, sys.stdin might not have a fileno
        isatty = False
      if not isatty:
        return True
      push = input('\nPublish {} with revision {} ? [y|N] '.format(
        coord, version
      ))
      print('\n')
      return push.strip().lower() == 'y'
docs: Ask the user if a push should be done for a particular version of a
         particular coordinate.   Return True if the push should be done