Did I find the right examples for you? yes no

All Samples(24)  |  Call(16)  |  Derive(0)  |  Import(8)
Prepare the file patterns for use in a `FnmatchMatcher`.

If a pattern starts with a wildcard, it is used as a pattern
as-is.  If it does not start with a wildcard, then it is made
absolute with the current directory.

If `patterns` is None, an empty list is returned.

        def prep_patterns(patterns):
    """Prepare the file patterns for use in a `FnmatchMatcher`.

    If a pattern starts with a wildcard, it is used as a pattern
    as-is.  If it does not start with a wildcard, then it is made
    absolute with the current directory.

    If `patterns` is None, an empty list is returned.

    """
    prepped = []
    for p in patterns or []:
        if p.startswith("*") or p.startswith("?"):
            prepped.append(p)
        else:
            prepped.append(abs_file(p))
    return prepped
        


src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/coverage/control.py   microblog(Download)
from coverage.debug import DebugControl
from coverage.files import FileLocator, TreeMatcher, FnmatchMatcher
from coverage.files import PathAliases, find_python_files, prep_patterns
from coverage.html import HtmlReporter
from coverage.misc import CoverageException, bool_or_none, join_regex
                self.source_pkgs.append(src)
 
        self.omit = prep_patterns(self.config.omit)
        self.include = prep_patterns(self.config.include)
 

src/n/u/nupic-linux64-HEAD/lib64/python2.6/site-packages/coverage/control.py   nupic-linux64(Download)
from coverage.debug import DebugControl
from coverage.files import FileLocator, TreeMatcher, FnmatchMatcher
from coverage.files import PathAliases, find_python_files, prep_patterns
from coverage.html import HtmlReporter
from coverage.misc import CoverageException, bool_or_none, join_regex
                self.source_pkgs.append(src)
 
        self.omit = prep_patterns(self.config.omit)
        self.include = prep_patterns(self.config.include)
 

src/c/o/coverage-3.7.1/coverage/control.py   coverage(Download)
from coverage.debug import DebugControl
from coverage.files import FileLocator, TreeMatcher, FnmatchMatcher
from coverage.files import PathAliases, find_python_files, prep_patterns
from coverage.html import HtmlReporter
from coverage.misc import CoverageException, bool_or_none, join_regex
                self.source_pkgs.append(src)
 
        self.omit = prep_patterns(self.config.omit)
        self.include = prep_patterns(self.config.include)
 

src/c/o/coveragepy-HEAD/coverage/control.py   coveragepy(Download)
from coverage.debug import DebugControl
from coverage.files import FileLocator, TreeMatcher, FnmatchMatcher
from coverage.files import PathAliases, find_python_files, prep_patterns
from coverage.html import HtmlReporter
from coverage.misc import CoverageException, bool_or_none, join_regex
                self.source_pkgs.append(src)
 
        self.omit = prep_patterns(self.config.omit)
        self.include = prep_patterns(self.config.include)
 

src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/coverage/report.py   microblog(Download)
"""Reporter foundation for Coverage."""
 
import fnmatch, os
from coverage.codeunit import code_unit_factory
from coverage.files import prep_patterns
 
        if self.config.include:
            patterns = prep_patterns(self.config.include)
            filtered = []
            for cu in self.code_units:
 
        if self.config.omit:
            patterns = prep_patterns(self.config.omit)
            filtered = []
            for cu in self.code_units:

src/n/u/nupic-linux64-HEAD/lib64/python2.6/site-packages/coverage/report.py   nupic-linux64(Download)
"""Reporter foundation for Coverage."""
 
import fnmatch, os
from coverage.codeunit import code_unit_factory
from coverage.files import prep_patterns
 
        if self.config.include:
            patterns = prep_patterns(self.config.include)
            filtered = []
            for cu in self.code_units:
 
        if self.config.omit:
            patterns = prep_patterns(self.config.omit)
            filtered = []
            for cu in self.code_units:

src/c/o/coverage-3.7.1/coverage/report.py   coverage(Download)
"""Reporter foundation for Coverage."""
 
import fnmatch, os
from coverage.codeunit import code_unit_factory
from coverage.files import prep_patterns
 
        if self.config.include:
            patterns = prep_patterns(self.config.include)
            filtered = []
            for cu in self.code_units:
 
        if self.config.omit:
            patterns = prep_patterns(self.config.omit)
            filtered = []
            for cu in self.code_units:

src/c/o/coveragepy-HEAD/coverage/report.py   coveragepy(Download)
"""Reporter foundation for Coverage."""
 
import fnmatch, os
from coverage.codeunit import code_unit_factory
from coverage.files import prep_patterns
 
        if self.config.include:
            patterns = prep_patterns(self.config.include)
            filtered = []
            for cu in self.code_units:
 
        if self.config.omit:
            patterns = prep_patterns(self.config.omit)
            filtered = []
            for cu in self.code_units: