|
6 | 6 | The following classes are imported and made available from the root of
|
7 | 7 | the `pathspec` package:
|
8 | 8 |
|
9 |
| -- :class:`pathspec.gitignore.GitIgnoreSpec` |
| 9 | +- :class:`pathspec.gitignore.GitIgnoreSpec` |
10 | 10 |
|
11 |
| -- :class:`pathspec.pathspec.PathSpec` |
| 11 | +- :class:`pathspec.pathspec.PathSpec` |
12 | 12 |
|
13 |
| -- :class:`pathspec.pattern.Pattern` |
| 13 | +- :class:`pathspec.pattern.Pattern` |
14 | 14 |
|
15 |
| -- :class:`pathspec.pattern.RegexPattern` |
| 15 | +- :class:`pathspec.pattern.RegexPattern` |
16 | 16 |
|
17 |
| -- :class:`pathspec.util.RecursionError` |
| 17 | +- :class:`pathspec.util.RecursionError` |
18 | 18 |
|
19 | 19 | The following functions are also imported:
|
20 | 20 |
|
21 |
| -- :func:`pathspec.util.lookup_pattern` |
| 21 | +- :func:`pathspec.util.lookup_pattern` |
22 | 22 |
|
23 | 23 | The following deprecated functions are also imported to maintain
|
24 | 24 | backward compatibility:
|
25 | 25 |
|
26 |
| -- :func:`pathspec.util.iter_tree` which is an alias for |
27 |
| - :func:`pathspec.util.iter_tree_files`. |
| 26 | +- :func:`pathspec.util.iter_tree` which is an alias for |
| 27 | + :func:`pathspec.util.iter_tree_files`. |
28 | 28 |
|
29 |
| -- :func:`pathspec.util.match_files` |
| 29 | +- :func:`pathspec.util.match_files` |
30 | 30 | """
|
31 | 31 |
|
32 | 32 | from .gitignore import (
|
|
53 | 53 | # Load pattern implementations.
|
54 | 54 | from . import patterns
|
55 | 55 |
|
56 |
| -# Expose `GitIgnorePattern` class in the root module for backward |
57 |
| -# compatibility with v0.4. |
| 56 | +# DEPRECATED: Expose the `GitIgnorePattern` class in the root module for |
| 57 | +# backward compatibility with v0.4. |
58 | 58 | from .patterns.gitwildmatch import GitIgnorePattern
|
| 59 | + |
| 60 | +# Declare private imports as part of the public interface. Deprecated |
| 61 | +# imports are deliberately excluded. |
| 62 | +__all__ = [ |
| 63 | + 'GitIgnoreSpec', |
| 64 | + 'PathSpec', |
| 65 | + 'Pattern', |
| 66 | + 'RecursionError', |
| 67 | + 'RegexPattern', |
| 68 | + '__author__', |
| 69 | + '__copyright__', |
| 70 | + '__credits__', |
| 71 | + '__license__', |
| 72 | + '__version__', |
| 73 | + 'iter_tree', |
| 74 | + 'lookup_pattern', |
| 75 | + 'match_files', |
| 76 | +] |
0 commit comments