• File: magic.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/magic.pyc
  • Date Modified: 06/30/2020 1:17 AM
  • File size: 8.01 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

i{Nc@s9dZddlZddlTddlmZdZiZeed<dZZdZZ	d	Z
Zd
ZZ
dZZdZZd
ZZdZZdZZdZZdZZdZZdZZdZ Z!dZ"Z#dZ$Z%dZ&Z'dZ(Z)dZ*Z+dZ,Z-dZ.Z/dZ0Z1dZ2Z3dZ4Z5de6fd YZ7ge7_8e9e7Z:edj;Z<e:e<_=e>ge<_?edj@ZAdeA_=e:geA_?edjCZDeEeD_=e:eEgeD_?edjFZGeEeG_=e:e>geG_?edjHZIeEeI_=e:eJeKgeI_?edjLZMeEeM_=e:geM_?edjNZOe>eO_=e:e>geO_?edjPZQe>eQ_=e:eEgeQ_?edjRZSe>eS_=e:eEgeS_?edjTZUe>eU_=e:eEgeU_?edjVZWe>eW_=e:eEgeW_?edjXZYe>eY_=e:geY_?d!eZfd"YZ[d#Z\dS($s
Python bindings for libmagic
iN(t*(tfind_librarycCstjjtdS(sd
    Loads the shared library through ctypes and returns a library
    L{ctypes.CDLL} instance 
    tmagic(tctypestcdlltLoadLibraryR(((s)/usr/lib/python2.7/site-packages/magic.pyt_initsRiiiiiii i@iiiiiiii i@iiiiii i?t	magic_setcBseZRS((t__name__t
__module__(((s)/usr/lib/python2.7/site-packages/magic.pyR1stMagiccBsweZdZdZdZdZdZdZdZddZ
dZd	Zd
Z
dZRS(
cCs
||_dS(N(t_magic_t(tselftms((s)/usr/lib/python2.7/site-packages/magic.pyt__init__gscCst|jdS(sO
        Closes the magic database and deallocates any resources used.
        N(t_closeR(R((s)/usr/lib/python2.7/site-packages/magic.pytclosejscCsGy,t|d}tt|j|dSWnt|j|SXdS(s
        Returns a textual description of the contents of the argument passed
        as a filename or None if an error occurred and the MAGIC_ERROR flag
        is set.  A call to errno() will return the numeric error code.
        sutf-8N(tbyteststrt_fileR(Rtfilenametbi((s)/usr/lib/python2.7/site-packages/magic.pytfileps
cCst|j|S(sN
        Like the file method, but the argument is a file descriptor.
        (t_descriptorR(Rtfd((s)/usr/lib/python2.7/site-packages/magic.pyt
descriptor|scCsJy&tt|j|t|dSWnt|j|t|SXdS(s
        Returns a textual description of the contents of the argument passed
        as a buffer or None if an error occurred and the MAGIC_ERROR flag
        is set. A call to errno() will return the numeric error code.
        sutf-8N(Rt_bufferRtlen(Rtbuf((s)/usr/lib/python2.7/site-packages/magic.pytbuffers&cCs2ytt|jdSWnt|jSXdS(sh
        Returns a textual explanation of the last error or None
        if there was no error.
        sutf-8N(Rt_errorR(R((s)/usr/lib/python2.7/site-packages/magic.pyterrorscCst|j|S(s*
        Set flags on the magic object which determine how magic checking behaves;
        a bitwise OR of the flags described in libmagic(3), but without the MAGIC_
        prefix.

        Returns -1 on systems that don't support utime(2) or utimes(2)
        when PRESERVE_ATIME is set.
        (t	_setflagsR(Rtflags((s)/usr/lib/python2.7/site-packages/magic.pytsetflagss	cCst|j|S(s
        Must be called to load entries in the colon separated list of database files
        passed as argument or the default database file if no argument before
        any magic queries can be performed.
        
        Returns 0 on success and -1 on failure.
        (t_loadR(RR((s)/usr/lib/python2.7/site-packages/magic.pytloadscCst|j|S(sC
        Compile entries in the colon separated list of database files
        passed as argument or the default database file if no argument.
        Returns 0 on success and -1 on failure.
        The compiled files created are named from the basename(1) of each file
        argument with ".mgc" appended to it.
        (t_compileR(Rtdbs((s)/usr/lib/python2.7/site-packages/magic.pytcompilescCst|j|S(s
        Check the validity of entries in the colon separated list of
        database files passed as argument or the default database file
        if no argument.
        Returns 0 on success and -1 on failure.
        (t_checkR(RR&((s)/usr/lib/python2.7/site-packages/magic.pytcheckscCst|j|S(s
        Check the validity of entries in the colon separated list of
        database files passed as argument or the default database file
        if no argument.
        Returns 0 on success and -1 on failure.
        (t_listR(RR&((s)/usr/lib/python2.7/site-packages/magic.pytlistscCs
t|jS(s
        Returns a numeric error code. If return value is 0, an internal
        magic error occurred. If return value is non-zero, the value is
        an OS error code. Use the errno module or os.strerror() can be used
        to provide detailed error information.
        (t_errnoR(R((s)/usr/lib/python2.7/site-packages/magic.pyterrnosN(RR	RRRRRRR"tNoneR$R'R)R+R-(((s)/usr/lib/python2.7/site-packages/magic.pyR
fs						
	
	
				cCstt|S(sd
    Returns a magic object on success and None on failure.
    Flags argument as for setflags.
    (R
t_open(R!((s)/usr/lib/python2.7/site-packages/magic.pytopens(]t__doc__Rtctypes.utilRRt
_librariest
MAGIC_NONEtNONEtMAGIC_DEBUGtDEBUGt
MAGIC_SYMLINKtSYMLINKtMAGIC_COMPRESStCOMPRESSt
MAGIC_DEVICEStDEVICEStMAGIC_MIME_TYPEt	MIME_TYPEtMAGIC_CONTINUEtCONTINUEtMAGIC_CHECKtCHECKtMAGIC_PRESERVE_ATIMEtPRESERVE_ATIMEt	MAGIC_RAWtRAWtMAGIC_ERRORtERRORtMAGIC_MIME_ENCODINGt
MIME_ENCODINGt
MAGIC_MIMEtMIMEtMAGIC_APPLEtAPPLEtMAGIC_NO_CHECK_COMPRESStNO_CHECK_COMPRESStMAGIC_NO_CHECK_TARtNO_CHECK_TARtMAGIC_NO_CHECK_SOFTt
NO_CHECK_SOFTtMAGIC_NO_CHECK_APPTYPEtNO_CHECK_APPTYPEtMAGIC_NO_CHECK_ELFtNO_CHECK_ELFtMAGIC_NO_CHECK_TEXTt
NO_CHECK_TEXTtMAGIC_NO_CHECK_CDFtNO_CHECK_CDFtMAGIC_NO_CHECK_TOKENStNO_CHECK_TOKENStMAGIC_NO_CHECK_ENCODINGtNO_CHECK_ENCODINGtMAGIC_NO_CHECK_BUILTINtNO_CHECK_BUILTINt	StructureRt_fields_tPOINTERtmagic_tt
magic_openR/trestypetc_inttargtypestmagic_closeRR.t
magic_fileRtc_char_ptmagic_descriptorRtmagic_bufferRtc_void_ptc_size_ttmagic_errorRtmagic_setflagsR t
magic_loadR#t
magic_compileR%tmagic_checkR(t
magic_listR*tmagic_errnoR,tobjectR
R0(((s)/usr/lib/python2.7/site-packages/magic.pyt<module>s
	
























	
	
	
	
	
	
	
	
	
	
	
	
	k