Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /usr/lib/python2.7/distutils
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: filelist.pyc
� ӫ[c @ s� d Z d Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d d � � YZ e j d � Z d � Z d d d d � Z d S( ss distutils.filelist Provides the FileList class, used for poking about the filesystem and building lists of files. s $Id$i����N( t convert_path( t DistutilsTemplateErrort DistutilsInternalError( t logt FileListc B s� e Z d Z d d d � Z d � Z e j d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d d d d � Z d d d d � Z RS( s� 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) c C s d | _ g | _ d S( N( t Nonet allfilest files( t selft warnt debug_print( ( s( /usr/lib/python2.7/distutils/filelist.pyt __init__ s c C s | | _ d S( N( R ( R R ( ( s( /usr/lib/python2.7/distutils/filelist.pyt set_allfiles$ s c C s t | � | _ d S( N( t findallR ( R t dir( ( s( /usr/lib/python2.7/distutils/filelist.pyR ' s c C s" d d l m } | r | GHn d S( s~ Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true. i����( t DEBUGN( t distutils.debugR ( R t msgR ( ( s( /usr/lib/python2.7/distutils/filelist.pyR * s c C s | j j | � d S( N( R t append( R t item( ( s( /usr/lib/python2.7/distutils/filelist.pyR 4 s c C s | j j | � d S( N( R t extend( R t items( ( s( /usr/lib/python2.7/distutils/filelist.pyR 7 s c C s\ t t j j | j � } | j � g | _ x* | D]" } | j j t j j | � � q2 Wd S( N( t mapt ost patht splitR t sortR t join( R t sortable_filest sort_tuple( ( s( /usr/lib/python2.7/distutils/filelist.pyR : s c C sY xR t t | j � d d d � D]1 } | j | | j | d k r | j | =q q Wd S( Ni i i����( t ranget lenR ( R t i( ( s( /usr/lib/python2.7/distutils/filelist.pyt remove_duplicatesE s &c C s | j � } | d } d } } } | d k rh t | � d k rR t d | � n t t | d � } n� | d k r� t | � d k r� t d | � n t | d � } t t | d � } nN | d k r� t | � d k r� t d | � n t | d � } n t d | � | | | | f S( Ni t includet excludes global-includes global-excludei s&