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

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). 

6 

7The following classes are imported and made available from the root of 

8the `pathspec` package: 

9 

10- :class:`pathspec.pathspec.PathSpec` 

11 

12- :class:`pathspec.pattern.Pattern` 

13 

14- :class:`pathspec.pattern.RegexPattern` 

15 

16- :class:`pathspec.util.RecursionError` 

17 

18The following functions are also imported: 

19 

20- :func:`pathspec.util.iter_tree` 

21- :func:`pathspec.util.lookup_pattern` 

22- :func:`pathspec.util.match_files` 

23""" 

24from __future__ import unicode_literals 

25 

26from .pathspec import PathSpec 

27from .pattern import Pattern, RegexPattern 

28from .util import iter_tree, lookup_pattern, match_files, RecursionError 

29 

30from ._meta import ( 

31 __author__, 

32 __copyright__, 

33 __credits__, 

34 __license__, 

35 __version__, 

36) 

37 

38# Load pattern implementations. 

39from . import patterns 

40 

41# Expose `GitIgnorePattern` class in the root module for backward 

42# compatibility with v0.4. 

43from .patterns.gitwildmatch import GitIgnorePattern