Spade

Mini Shell

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

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

�
,�]c@s�dZddlmZddlmZmZerEddlmZnddlmZe	Z
defd��YZd�Z
deee
�fd	��YZdgZd
S(sH
Pure-Python implementation of a Python 2-like str object for Python 3.
i����(tIntegral(tPY2twith_metaclass(tIterablet
BaseOldStrcBseZd�ZRS(cCs
t|t�S(N(t
isinstancet_builtin_bytes(tclstinstance((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyt__instancecheck__s(t__name__t
__module__R	(((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyRscCs|j�jd�S(s�
    Interprets strings with escape sequences

    Example:
    >>> s = unescape(r'abc\def')   # i.e.
'abc\\def'
    >>> print(s)
    'abc\def'
    >>> s2 = unescape('abc\ndef')
    >>> len(s2)
    8
    >>> print(s2)
    abc
    def
   
tunicode_escape(tencodetdecode(ts((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pytunescapestoldstrcBs\eZdZed��Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�ZRS(	sC
    A forward port of the Python 2 8-bit string object to Py3
    cCs
t�dS(N(tAttributeError(tself((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyt__iter__-scCs)gtt�D]}|dkr
|^q
S(NR(tdirR(Rtthing((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyt__dir__1scCstt|�j�}|dS(Ni(tsuperRt__repr__(RR((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyRlscCs&tt|�j�}t|dd!�S(Nii����(RRt__str__R(RR((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyRpscCsLt|t�r2tt|�jt||d��Stt|�j|�SdS(Ni(RRRRt__getitem__tslice(Rty((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyRvs#cGs|jt|��S(N(RR(Rtargs((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyt__getslice__|scCst|t�rtSdS(N(RtinttFalse(Rtkey((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyt__contains__scCs
t|�S(N(tbytes(R((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyt
__native__�s(R
Rt__doc__tpropertyRRRRRRR#R%(((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyR(s	;					N(R&tnumbersRt
past.utilsRRtcollectionsRtcollections.abcR$RttypeRRRt__all__(((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyt<module>s	_