code: def contains(path, text):
      '''
      .. deprecated:: 0.17.0
         Use :func:`search` instead.
  
      Return ``True`` if the file at ``path`` contains ``text``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.contains /etc/crontab 'mymaintenance.sh'
      '''
      path = os.path.expanduser(path)
  
      if not os.path.exists(path):
          return False
  
      stripped_text = six.text_type(text).strip()
      try:
          with salt.utils.filebuffer.BufferedReader(path) as breader:
              for chunk in breader:
                  if stripped_text in chunk:
                      return True
          return False
      except (IOError, OSError):
          return Falsf contains(path, text):
      '''
      .. deprecated:: 0.17.0
         Use :func:`search` instead.
  
      Return ``True`` if the file at ``path`` contains ``text``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.contains /etc/crontab 'mymaintenance.sh'
      '''
      path = os.path.expanduser(path)
  
      if not os.path.exists(path):
          return False
  
      stripped_text = six.text_type(text).strip()
      try:
          with salt.utils.filebuffer.BufferedReader(path) as breader:
              for chunk in breader:
                  if stripped_text in chunk:
                      return True
          return False
      except (IOError, OSError):
          return False
docs: .. deprecated:: 0.17.0
         Use :func:`search` instead.
  
      Return ``True`` if the file at ``path`` contains ``text``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.contains /etc/crontab 'mymaintenance.sh'