Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
setuptools
/
__pycache__
/
File Content:
glob.cpython-35.opt-1.pyc
i�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_type�glob�iglob�escapeFc 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 �/glob.pyr s c C s1 t | | � } | r- t | � r- 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�_isrecursive�next)r r �it�sr 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>