]>
crepu.dev Git - config.git/blob - djavu-asus/elpy/rpc-venv/lib/python3.11/site-packages/pathspec/__init__.py
2 The *pathspec* package provides pattern matching for file paths. So far
3 this only includes Git's wildmatch pattern matching (the style used for
6 The following classes are imported and made available from the root of
7 the `pathspec` package:
9 - :class:`pathspec.gitignore.GitIgnoreSpec`
11 - :class:`pathspec.pathspec.PathSpec`
13 - :class:`pathspec.pattern.Pattern`
15 - :class:`pathspec.pattern.RegexPattern`
17 - :class:`pathspec.util.RecursionError`
19 The following functions are also imported:
21 - :func:`pathspec.util.lookup_pattern`
23 The following deprecated functions are also imported to maintain
24 backward compatibility:
26 - :func:`pathspec.util.iter_tree` which is an alias for
27 :func:`pathspec.util.iter_tree_files`.
29 - :func:`pathspec.util.match_files`
32 from .gitignore
import (
34 from .pathspec
import (
36 from .pattern
import (
53 # Load pattern implementations.
54 from . import patterns
56 # DEPRECATED: Expose the `GitIgnorePattern` class in the root module for
57 # backward compatibility with v0.4.
58 from .patterns
.gitwildmatch
import GitIgnorePattern
60 # Declare private imports as part of the public interface. Deprecated
61 # imports are deliberately excluded.