class_docstr: The :class:`GitIgnorePattern` class is deprecated by :class:`GitWildMatchPattern`.
  This class only exists to maintain compatibility with v0.4.
docstr: Warn about deprecation.
docstr_tok: ["Warn","about","deprecation","."]
code: def pattern_to_regex(cls, *args, **kw):
      """
      Warn about deprecation.
      """
      cls._deprecated()
      return super(GitIgnorePattern, cls).pattern_to_regex(*args, **kw)
  
file_path: ray/python/ray/_private/thirdparty/pathspec/patterns/gitwildmatch.py
imports: from __future__ import unicode_literals
  import re
  import warnings
  from ..None import util
  from ..compat import unicode
  from ..pattern import RegexPattern
label_desc: Use image node_id 3 for calling the GitIgnorePattern obj's underlying member method code with example usage: obj.pattern_to_regex(cls) and returns: super