Spade

Mini Shell

Directory:~$ /proc/self/root/usr/lib/python2.7/site-packages/future/types/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/usr/lib/python2.7/site-packages/future/types/newopen.pyc

�
,�]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((s8/usr/lib/python2.7/site-packages/future/types/newopen.pyt__init__scCs|jj|j|j��S(N(RtwritetencodeR(Rts((s8/usr/lib/python2.7/site-packages/future/types/newopen.pyR
si����cCs|jj|�j|j�S(N(RtreadtdecodeR(Rtsize((s8/usr/lib/python2.7/site-packages/future/types/newopen.pyR
scCs
|jj�S(N(Rtclose(R((s8/usr/lib/python2.7/site-packages/future/types/newopen.pyRscCs|S(N((R((s8/usr/lib/python2.7/site-packages/future/types/newopen.pyt	__enter__scCs|jj�dS(N(RR(Rtetypetvaluet	traceback((s8/usr/lib/python2.7/site-packages/future/types/newopen.pyt__exit__s(	t__name__t
__module__t__doc__R	R
R
RRR(((s8/usr/lib/python2.7/site-packages/future/types/newopen.pyR
s			N(RtopenRtobjectR(((s8/usr/lib/python2.7/site-packages/future/types/newopen.pyt<module>s