ReW @ s d Z d d l Z d d l Z d d l Z d d l m Z d d d g Z d d d Z d d d Z d d Z d d Z d d Z d d Z d d Z e j d Z e j d Z d d Z d d Z d d Z d S)z Filename globbing utility. Mostly a copy of `glob` from Python 3.5. Changes include: * `yield from` and PEP3102 `*` removed. * `bytes` changed to `six.binary_type`. * Hidden files are not ignored. N)binary_typeglobiglobescapeFc C s t t | d | S)ay Return a list of paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. However, unlike fnmatch, filenames starting with a dot are special cases that are not matched by '*' and '?' patterns. If recursive is true, the pattern '**' will match any files and zero or more directories and subdirectories. recursive)listr )pathnamer r /builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/glob.pyr s c C s> t | | } | r: t | r: t | } | s: t | S)a Return an iterator which yields the paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. However, unlike fnmatch, filenames starting with a dot are special cases that are not matched by '*' and '?' patterns. If recursive is true, the pattern '**' will match any files and zero or more directories and subdirectories. )_iglob_isrecursivenextAssertionError)r r itsr r r r s c c sh t j j | \ } } t | s_ | rD t j j | r[ | Vn t j j | r[ | Vd S| s | r t | r x> t | | D] } | Vq Wn x t | | D] } | Vq Wd S| | k r t | r t | | } n | g } t | r| rt | rt } q%t } n t } x<