• File: py3k.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/site-packages/numpy/compat/__pycache__/py3k.cpython-37.pyc
  • Date Modified: 04/24/2023 7:10 PM
  • File size: 4.26 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

<Fd5@svdZddlmZmZmZddddddd	d
ddd
dddddddgZddlZyddlmZWne	k
rpdZYnXej
ddkrddlZeZ
efZeZeZeZdd	ZddZddZddZd-dd
ZddZdZnFeZe
Z
eZeZee
fZeZeZd Zd!dZd"d	Zd.d#d
Zd$dZd%dZd&d
Zd'dZd(dZej
ddkrhej
d)d*krhd/d+dZn
d0d,dZdS)1z 
Python 3 compatibility tools.

)divisionabsolute_importprint_functionbytesasbytes	isfileobjgetexceptionstrcharunicode	asunicodeasbytes_nestedasunicode_nestedasstropen_latin1long
basestringsixu
integer_typesis_pathlib_pathnpy_load_modulePathN)rcCst|tr|dSt|S)Nlatin1)
isinstancerdecodestr)srD/opt/alt/python37/lib64/python3.7/site-packages/numpy/compat/py3k.pyrs

cCst|tr|St|dS)Nr)rrrencode)rrrrr s
cCst|tr|dSt|S)Nr)rrrr)rrrrr%s

cCst|tjtjtjfS)N)rioFileIOBufferedReaderBufferedWriter)frrrr*srcCst||ddS)Nz
iso-8859-1)modeencoding)open)filenamer&rrrr-scCs|S)Nr)rrrrr0sUScCs
t|tS)N)rfile)r$rrrr@scCst|tr|St|dS)Nascii)rr
rr)rrrrrCs
cCst||dS)N)r&)r()r)r&rrrrHscCs
t|dS)NZunicode_escape)r
)rrrrrKscCstdS)N)sysexc_inforrrrrOscCs2t|dr&t|ttfs&dd|DSt|SdS)N__iter__cSsg|]}t|qSr)r).0yrrr
<listcomp>Tsz"asbytes_nested.<locals>.<listcomp>)hasattrrrr
r)xrrrrRscCs2t|dr&t|ttfs&dd|DSt|SdS)Nr1cSsg|]}t|qSr)r
)r2r3rrrr4Zsz$asunicode_nested.<locals>.<listcomp>)r5rrr
r)r6rrrr
XscCstdk	ot|tS)z5
    Check whether obj is a pathlib.Path object.
    N)rr)objrrrr^sr.cCsddl}|j||S)ad
        Load a module.

        .. versionadded:: 1.11.2

        Parameters
        ----------
        name : str
            Full module name.
        fn : str
            Path to module file.
        info : tuple, optional
            Only here for backward compatibility with Python 2.*.

        Returns
        -------
        mod : module

        rN)Zimportlib.machinery	machinerySourceFileLoaderload_module)namefninfo	importlibrrrrescCslddl}ddl}|dkr:|j|}|||g\}}}nt||d}z|||||}Wd|X|S)a}
        Load a module.

        .. versionadded:: 1.11.2

        Parameters
        ----------
        name : str
            Full module name.
        fn : str
            Path to module file.
        info : tuple, optional
            Information as returned by `imp.find_module`
            (suffix, mode, type).

        Returns
        -------
        mod : module

        rNr.)impospathdirnamefind_moduler(r;close)r<r=r>r@rArBZfomodrrrr|s
)r%)r%)N)N)__doc__Z
__future__rrr__all__r/ZpathlibrImportErrorversion_infor intrrrrr
rrrrrrrr	rrr
rrrrrr<module>sV