Spade
Mini Shell
| Directory:~$ /proc/self/root/usr/lib/python2.7/site-packages/past/types/ |
| [Home] [System Details] [Kill Me] |
�
,�]c@s�dZddlmZddlmZmZerEddlmZnddlmZe Z
defd��YZd�Z
deee
�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.pyRlscCsLtt|�j�}|d
dkr5|ddks;t�t|dd!�S(Nisb'i����t'(RRt__str__tAssertionErrorR(RR((s5/usr/lib/python2.7/site-packages/past/types/oldstr.pyRps&cCsLt|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__tpropertyRRRRRR!R%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 _