ó ž‘Rec @ 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 e d „ Z e d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e j d ƒ Z e j d ƒ Z d „ Z d „ Z d „ Z d S( sÊ 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. iÿÿÿÿN( t binary_typet globt iglobt escapec C s t t | d | ƒƒ S( sy 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. t recursive( t listR ( t pathnameR ( ( s… /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/glob.pyR s c C sA t | | ƒ } | r= t | ƒ r= t | ƒ } | s= t ‚ n | S( sŒ 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. ( t _iglobt _isrecursivet nextt AssertionError( R R t itt s( ( s… /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/glob.pyR s c c sn t j j | ƒ \ } } t | ƒ se | rG t j j | ƒ ra | Vqa n t j j | ƒ ra | Vn d 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<