Your IP : 216.73.216.213


Current Path : /opt/alt/python27/lib/python2.7/site-packages/future/types/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyc

�
�A�[c@s&dZeZdefd��YZdS(s�
A substitute for the Python 3 open() function.

Note that io.open() is more complete but maybe slower. Even so, the
completeness may be a better default. TODO: compare these
tnewopencBsMeZdZddd�Zd�Zdd�Zd�Zd�Zd	�ZRS(
stWrapper providing key part of Python 3 open() interface.

    From IPython's py3compat.py module. License: BSD.
    trsutf-8cCst||�|_||_dS(N(t
_builtin_opentftenc(tselftfnametmodetencoding((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyt__init__scCs|jj|j|j��S(N(RtwritetencodeR(Rts((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyR
si����cCs|jj|�j|j�S(N(RtreadtdecodeR(Rtsize((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyR
scCs
|jj�S(N(Rtclose(R((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyRscCs|S(N((R((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyt	__enter__scCs|jj�dS(N(RR(Rtetypetvaluet	traceback((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyt__exit__s(	t__name__t
__module__t__doc__R	R
R
RRR(((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyR
s			N(RtopenRtobjectR(((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newopen.pyt<module>s