$85 GRAYBYTE WORDPRESS FILE MANAGER $15

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/distutils/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/distutils/__pycache__//filelist.cpython-34.pyc
�
i f�1�@s�dZddlZddlZddlZddlmZddlmZmZddl	m
Z
Gdd�d�Zejdd	�Z
d
d�Zdddd
d�ZdS)zsdistutils.filelist

Provides the FileList class, used for poking about the filesystem
and building lists of files.
�N)�convert_path)�DistutilsTemplateError�DistutilsInternalError)�logc@s�eZdZdZdddd�Zdd�Zejdd�Zd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dd�Zdd�Zddddd�Zddddd�ZdS)�FileLista�A list of files built by on exploring the filesystem and filtered by
    applying various patterns to what we find there.

    Instance attributes:
      dir
        directory from which files will be taken -- only used if
        'allfiles' not supplied to constructor
      files
        list of filenames currently being built/filtered/manipulated
      allfiles
        complete list of files under consideration (ie. without any
        filtering applied)
    NcCsd|_g|_dS)N)�allfiles�files)�self�warn�debug_print�r�7/opt/alt/python34/lib64/python3.4/distutils/filelist.py�__init__s	zFileList.__init__cCs
||_dS)N)r)r	rrrr
�set_allfiles"szFileList.set_allfilescCst|�|_dS)N)�findallr)r	�dirrrr
r%szFileList.findallcCs'ddlm}|r#t|�ndS)z~Print 'msg' to stdout if the global DEBUG (taken from the
        DISTUTILS_DEBUG environment variable) flag is true.
        r)�DEBUGN)Zdistutils.debugr�print)r	�msgrrrr
r(szFileList.debug_printcCs|jj|�dS)N)r�append)r	�itemrrr
r2szFileList.appendcCs|jj|�dS)N)r�extend)r	�itemsrrr
r5szFileList.extendcCsXtttjj|j��}g|_x*|D]"}|jjtjj|��q.WdS)N)�sorted�map�os�path�splitrr�join)r	Zsortable_filesZ
sort_tuplerrr
�sort8s	
z
FileList.sortcCsYxRtt|j�ddd�D]1}|j||j|dkr |j|=q q WdS)N�r���)�range�lenr)r	�irrr
�remove_duplicatesBs&zFileList.remove_duplicatescCs:|j�}|d}d}}}|dkrut|�dkrUtd|��ndd	�|d
d�D�}n�|dkr�t|�d
kr�td|��nt|d
�}dd	�|dd�D�}nT|dkrt|�dkrtd|��nt|d
�}ntd|��||||fS)Nr�include�exclude�global-include�global-exclude�z&'%s' expects <pattern1> <pattern2> ...cSsg|]}t|��qSr)r)�.0�wrrr
�
<listcomp>Vs	z1FileList._parse_template_line.<locals>.<listcomp>r �recursive-include�recursive-exclude�z,'%s' expects <dir> <pattern1> <pattern2> ...cSsg|]}t|��qSr)r)r+r,rrr
r-\s	�graft�prunez#'%s' expects a single <dir_pattern>zunknown action '%s')zincluder'r(r))r.r/)r1r2)rr#rr)r	�lineZwords�action�patternsr�dir_patternrrr
�_parse_template_lineKs,
	  zFileList._parse_template_linecCs|j|�\}}}}|dkr}|jddj|��x�|D].}|j|dd�sHtjd|�qHqHWn�|dkr�|jddj|��xs|D].}|j|dd�s�tjd	|�q�q�Wn:|d
krA|jddj|��x|D].}|j|dd�stjd
|�qqWn�|dkr�|jddj|��x�|D].}|j|dd�sntjd|�qnqnWnv|dkr|jd|dj|�f�xG|D]1}|j|d|�s�tjd||�q�q�Wn|dkry|jd|dj|�f�x�|D]1}|j|d|�sAtjd||�qAqAWn�|dkr�|jd|�|jdd|�stjd|�qnX|dkr	|jd|�|jdd|�stjd|�qntd|��dS)Nr&zinclude � �anchorr z%warning: no files found matching '%s'r'zexclude z9warning: no previously-included files found matching '%s'zglobal-includezglobal-include rz>warning: no files found matching '%s' anywhere in distributionzglobal-excludezglobal-exclude zRwarning: no previously-included files matching '%s' found anywhere in distributionzrecursive-includezrecursive-include %s %s�prefixz:warning: no files found matching '%s' under directory '%s'zrecursive-excludezrecursive-exclude %s %szNwarning: no previously-included files matching '%s' found under directory '%s'r1zgraft z+warning: no directories found matching '%s'r2zprune z6no previously-included directories found matching '%s'z'this cannot happen: invalid action '%s')r7rr�include_patternrr
�exclude_patternr)r	r3r4r5rr6�patternrrr
�process_template_linegsf
	
	
	
		
		
		
	
zFileList.process_template_liner rcCs�d}t||||�}|jd|j�|jdkrK|j�nxJ|jD]?}|j|�rU|jd|�|jj|�d}qUqUW|S)a�Select strings (presumably filenames) from 'self.files' that
        match 'pattern', a Unix-style wildcard (glob) pattern.  Patterns
        are not quite the same as implemented by the 'fnmatch' module: '*'
        and '?'  match non-special characters, where "special" is platform-
        dependent: slash on Unix; colon, slash, and backslash on
        DOS/Windows; and colon on Mac OS.

        If 'anchor' is true (the default), then the pattern match is more
        stringent: "*.py" will match "foo.py" but not "foo/bar.py".  If
        'anchor' is false, both of these will match.

        If 'prefix' is supplied, then only filenames starting with 'prefix'
        (itself a pattern) and ending with 'pattern', with anything in between
        them, will match.  'anchor' is ignored in this case.

        If 'is_regex' is true, 'anchor' and 'prefix' are ignored, and
        'pattern' is assumed to be either a string containing a regex or a
        regex object -- no translation is done, the regex is just compiled
        and used as-is.

        Selected strings will be added to self.files.

        Return True if files are found, False otherwise.
        Fz%include_pattern: applying regex r'%s'Nz adding T)�translate_patternrr=rr�searchrr)r	r=r9r:�is_regex�files_found�
pattern_re�namerrr
r;�s	

zFileList.include_patterncCs�d}t||||�}|jd|j�xhtt|j�ddd�D]G}|j|j|�rO|jd|j|�|j|=d}qOqOW|S)aRemove strings (presumably filenames) from 'files' that match
        'pattern'.  Other parameters are the same as for
        'include_pattern()', above.
        The list 'self.files' is modified in place.
        Return True if files are found, False otherwise.
        Fz%exclude_pattern: applying regex r'%s'r z
 removing Tr!r!)r?rr=r"r#rr@)r	r=r9r:rArBrCr$rrr
r<�s	&

zFileList.exclude_pattern)�__name__�
__module__�__qualname__�__doc__rrr�curdirrrrrrr%r7r>r;r<rrrr
r
s


	L,rcCsddlm}m}m}m}g}|g}|j}|j}x�|r|�}tj|�}	x�|	D]�}
|tj	kr�tj
j||
�}n|
}tj|�}||}
||
�r�|j|�qk||
�rk||
�rk||�qkqkWqFW|S)z^Find all files under 'dir' and return the list of full filenames
    (relative to 'dir').
    r)�ST_MODE�S_ISREG�S_ISDIR�S_ISLNK)�statrJrKrLrM�poprr�listdirrIrr)rrJrKrLrM�list�stackrO�push�namesrD�fullnamerN�moderrr
r�s&"					

rcCsStj|�}tj}tjdkr0d}nd|}tjd||�}|S)z�Translate a shell-like glob pattern to a regular expression; return
    a string containing the regex.  Differs from 'fnmatch.translate()' in
    that '*' does not match "special characters" (which are
    platform-specific).
    �\z\\\\z\1[^%s]z((?<!\\)(\\\\)*)\.)�fnmatch�	translater�sep�re�sub)r=rCrZZescapedrrr
�
glob_to_res		
r]r cCs�|r)t|t�r"tj|�S|Sn|r>t|�}nd}|dk	r�td�}t|�dt|��}tj}tjdkr�d}nd|j|d|f�}n|r�d|}ntj|�S)aTranslate a shell-like wildcard pattern to a compiled regular
    expression.  Return the compiled regex.  If 'is_regex' true,
    then 'pattern' is directly compiled to a regex (if it's a string)
    or just returned as-is (assumes it's a regex object).
    �NrWz\\�^z.*)	�
isinstance�strr[�compiler]r#rrZr)r=r9r:rArCZ
empty_patternZ	prefix_rerZrrr
r?+s"
		 
r?)rHrr[rXZdistutils.utilrZdistutils.errorsrrZ	distutilsrrrIrr]r?rrrr
�<module>s�


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
__init__.cpython-34.pyc
0.396 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.396 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
archive_util.cpython-34.pyc
6.58 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
archive_util.cpython-34.pyo
6.58 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bcppcompiler.cpython-34.pyc
7.121 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bcppcompiler.cpython-34.pyo
7.121 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ccompiler.cpython-34.pyc
34.06 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ccompiler.cpython-34.pyo
33.898 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
cmd.cpython-34.pyc
15.31 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
cmd.cpython-34.pyo
15.31 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
config.cpython-34.pyc
3.731 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
config.cpython-34.pyo
3.731 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
core.cpython-34.pyc
6.964 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
core.cpython-34.pyo
6.964 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
cygwinccompiler.cpython-34.pyc
9.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
cygwinccompiler.cpython-34.pyo
9.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
debug.cpython-34.pyc
0.206 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
debug.cpython-34.pyo
0.206 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dep_util.cpython-34.pyc
2.798 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dep_util.cpython-34.pyo
2.798 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dir_util.cpython-34.pyc
6.088 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dir_util.cpython-34.pyo
6.088 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dist.cpython-34.pyc
35.987 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dist.cpython-34.pyo
35.987 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
errors.cpython-34.pyc
5.583 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
errors.cpython-34.pyo
5.583 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
extension.cpython-34.pyc
7.047 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
extension.cpython-34.pyo
7.047 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fancy_getopt.cpython-34.pyc
11.298 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fancy_getopt.cpython-34.pyo
11.131 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
file_util.cpython-34.pyc
6.201 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
file_util.cpython-34.pyo
6.201 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
filelist.cpython-34.pyc
9.933 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
filelist.cpython-34.pyo
9.933 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
log.cpython-34.pyc
2.435 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
log.cpython-34.pyo
2.435 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
msvc9compiler.cpython-34.pyc
18.796 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
msvc9compiler.cpython-34.pyo
18.73 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
msvccompiler.cpython-34.pyc
15.609 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
msvccompiler.cpython-34.pyo
15.609 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
spawn.cpython-34.pyc
5.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
spawn.cpython-34.pyo
5.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sysconfig.cpython-34.pyc
13.21 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sysconfig.cpython-34.pyo
13.21 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
text_file.cpython-34.pyc
8.726 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
text_file.cpython-34.pyo
8.726 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
unixccompiler.cpython-34.pyc
7.233 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
unixccompiler.cpython-34.pyo
7.233 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
util.cpython-34.pyc
16.223 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
util.cpython-34.pyo
16.223 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
version.cpython-34.pyc
7.786 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
version.cpython-34.pyo
7.736 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
versionpredicate.cpython-34.pyc
5.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
versionpredicate.cpython-34.pyo
5.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF