virtualEnvironment/lib/python2.7/site-packages/check_manifest.py
def _glob_to_regexp(pat):
    """Compile a glob pattern into a regexp.

    We need to do this because fnmatch allows * to match /, which we
    don't want.  E.g. an MANIFEST.in exclude of 'dirname/*css' should
    match 'dirname/foo.css' but not 'dirname/subdir/bar.css'.
    """
    pat = fnmatch.translate(pat)
    # Note that distutils in Python 2.6 has a buggy glob_to_re in
    # distutils.filelist -- it converts '*.cfg' to '[^/]*cfg' instead
    # of '[^\\]*cfg' on Windows.
    sep = r'\\\\' if os.path.sep == '\\' else os.path.sep
    return re.sub(r'((?<!\\)(\\\\)*)\.', r'\1[^%s]' % sep, pat)
def _glob_to_regexp(pat):
    pat = fnmatch.translate(pat)
    # Note that distutils in Python 2.6 has a buggy glob_to_re in
    # distutils.filelist -- it converts '*.cfg' to '[^/]*cfg' instead
    # of '[^\\]*cfg' on Windows.
    sep = r'\\\\' if os.path.sep == '\\' else os.path.sep
    return re.sub(r'((?<!\\)(\\\\)*)\.', r'\1[^%s]' % sep, pat)
def _glob_to_regexp ( pat ) : pat = fnmatch . translate ( pat ) # Note that distutils in Python 2.6 has a buggy glob_to_re in # distutils.filelist -- it converts '*.cfg' to '[^/]*cfg' instead # of '[^\\]*cfg' on Windows. sep = r'\\\\' if os . path . sep == '\\' else os . path . sep return re . sub ( r'((?<!\\)(\\\\)*)\.' , r'\1[^%s]' % sep , pat )
Compile a glob pattern into a regexp.

    We need to do this because fnmatch allows * to match /, which we
    don't want.  E.g. an MANIFEST.in exclude of 'dirname/*css' should
    match 'dirname/foo.css' but not 'dirname/subdir/bar.css'.
Compile a glob pattern into a regexp .