Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pathspec/__init__.py: 100%
8 statements
« prev ^ index » next coverage.py v7.0.1, created at 2022-12-25 06:11 +0000
« prev ^ index » next coverage.py v7.0.1, created at 2022-12-25 06:11 +0000
1# encoding: utf-8
2"""
3The *pathspec* package provides pattern matching for file paths. So far
4this only includes Git's wildmatch pattern matching (the style used for
5".gitignore" files).
7The following classes are imported and made available from the root of
8the `pathspec` package:
10- :class:`pathspec.pathspec.PathSpec`
12- :class:`pathspec.pattern.Pattern`
14- :class:`pathspec.pattern.RegexPattern`
16- :class:`pathspec.util.RecursionError`
18The following functions are also imported:
20- :func:`pathspec.util.iter_tree`
21- :func:`pathspec.util.lookup_pattern`
22- :func:`pathspec.util.match_files`
23"""
24from __future__ import unicode_literals
26from .pathspec import PathSpec
27from .pattern import Pattern, RegexPattern
28from .util import iter_tree, lookup_pattern, match_files, RecursionError
30from ._meta import (
31 __author__,
32 __copyright__,
33 __credits__,
34 __license__,
35 __version__,
36)
38# Load pattern implementations.
39from . import patterns
41# Expose `GitIgnorePattern` class in the root module for backward
42# compatibility with v0.4.
43from .patterns.gitwildmatch import GitIgnorePattern