Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβ€”the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβ€”embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.🌌 SpectraShell

🌌 SpectraShell

Current path: lib64/python2.7/



⬆️ Go up: /lib64

πŸ“„ Viewing: UserString.pyo

οΏ½
zfc@sοΏ½dZddlZddlZddgZdejfdοΏ½οΏ½YZdeejfdοΏ½οΏ½YZedkrοΏ½ddl	Z	e	j
jejdοΏ½\Z
Ze	j
jeοΏ½\ZZd	ejkrοΏ½dd
lmZde_nedejοΏ½οΏ½ndS(sοΏ½A user-defined wrapper around string objects

Note: string objects have grown methods in Python 1.6
This module requires Python 1.6 or later.
iοΏ½οΏ½οΏ½οΏ½Nt
UserStringt
MutableStringcBsoeZdοΏ½ZdοΏ½ZdοΏ½ZdοΏ½ZdοΏ½ZdοΏ½ZdοΏ½ZdοΏ½Z	dοΏ½Z
d	οΏ½Zd
οΏ½ZdοΏ½Z
dοΏ½Zd
οΏ½ZdοΏ½ZdοΏ½ZeZdοΏ½ZdοΏ½ZdοΏ½ZdejdοΏ½Zd;d;dοΏ½Zd;d;dοΏ½ZdejdοΏ½ZddοΏ½ZdejdοΏ½ZdejdοΏ½ZdοΏ½Z dοΏ½Z!dοΏ½Z"dοΏ½Z#d οΏ½Z$d!οΏ½Z%d"οΏ½Z&d#οΏ½Z'd$οΏ½Z(d%οΏ½Z)d&οΏ½Z*d'οΏ½Z+d;d(οΏ½Z,d)οΏ½Z-d*d+οΏ½Z.dejd,οΏ½Z/dejd-οΏ½Z0d.οΏ½Z1d/οΏ½Z2d;d0οΏ½Z3d;d*d1οΏ½Z4d;d*d2οΏ½Z5dd3οΏ½Z6dejd4οΏ½Z7d;d5οΏ½Z8d6οΏ½Z9d7οΏ½Z:d8οΏ½Z;d9οΏ½Z<d:οΏ½Z=RS(<cCsMt|tοΏ½r||_n.t|tοΏ½r:|j|_nt|οΏ½|_dS(N(t
isinstancet
basestringtdataRtstr(tselftseq((s"/usr/lib64/python2.7/UserString.pyt__init__s
cCs
t|jοΏ½S(N(RR(R((s"/usr/lib64/python2.7/UserString.pyt__str__tcCs
t|jοΏ½S(N(treprR(R((s"/usr/lib64/python2.7/UserString.pyt__repr__R
cCs
t|jοΏ½S(N(tintR(R((s"/usr/lib64/python2.7/UserString.pyt__int__R
cCs
t|jοΏ½S(N(tlongR(R((s"/usr/lib64/python2.7/UserString.pyt__long__R
cCs
t|jοΏ½S(N(tfloatR(R((s"/usr/lib64/python2.7/UserString.pyt	__float__R
cCs
t|jοΏ½S(N(tcomplexR(R((s"/usr/lib64/python2.7/UserString.pyt__complex__R
cCs
t|jοΏ½S(N(thashR(R((s"/usr/lib64/python2.7/UserString.pyt__hash__R
cCs6t|tοΏ½r"t|j|jοΏ½St|j|οΏ½SdS(N(RRtcmpR(Rtstring((s"/usr/lib64/python2.7/UserString.pyt__cmp__scCs
||jkS(N(R(Rtchar((s"/usr/lib64/python2.7/UserString.pyt__contains__"scCs
t|jοΏ½S(N(tlenR(R((s"/usr/lib64/python2.7/UserString.pyt__len__%R
cCs|j|j|οΏ½S(N(t	__class__R(Rtindex((s"/usr/lib64/python2.7/UserString.pyt__getitem__&R
cCs5t|dοΏ½}t|dοΏ½}|j|j||!οΏ½S(Ni(tmaxRR(Rtstarttend((s"/usr/lib64/python2.7/UserString.pyt__getslice__'scCsgt|tοΏ½r&|j|j|jοΏ½St|tοΏ½rI|j|j|οΏ½S|j|jt|οΏ½οΏ½SdS(N(RRRRRR(Rtother((s"/usr/lib64/python2.7/UserString.pyt__add__+s
cCsAt|tοΏ½r#|j||jοΏ½S|jt|οΏ½|jοΏ½SdS(N(RRRRR(RR%((s"/usr/lib64/python2.7/UserString.pyt__radd__2scCs|j|j|οΏ½S(N(RR(Rtn((s"/usr/lib64/python2.7/UserString.pyt__mul__7scCs|j|j|οΏ½S(N(RR(Rtargs((s"/usr/lib64/python2.7/UserString.pyt__mod__:scCs|j|jjοΏ½οΏ½S(N(RRt
capitalize(R((s"/usr/lib64/python2.7/UserString.pyR,>R
cGs|j|jj||οΏ½οΏ½S(N(RRtcenter(RtwidthR*((s"/usr/lib64/python2.7/UserString.pyR-?sicCs|jj|||οΏ½S(N(Rtcount(RtsubR"R#((s"/usr/lib64/python2.7/UserString.pyR/AscCs^|rD|r(|j|jj||οΏ½οΏ½S|j|jj|οΏ½οΏ½Sn|j|jjοΏ½οΏ½SdS(N(RRtdecode(Rtencodingterrors((s"/usr/lib64/python2.7/UserString.pyR1Cs
cCs^|rD|r(|j|jj||οΏ½οΏ½S|j|jj|οΏ½οΏ½Sn|j|jjοΏ½οΏ½SdS(N(RRtencode(RR2R3((s"/usr/lib64/python2.7/UserString.pyR4Ks
cCs|jj|||οΏ½S(N(Rtendswith(RtsuffixR"R#((s"/usr/lib64/python2.7/UserString.pyR5SsicCs|j|jj|οΏ½οΏ½S(N(RRt
expandtabs(Rttabsize((s"/usr/lib64/python2.7/UserString.pyR7UscCs|jj|||οΏ½S(N(Rtfind(RR0R"R#((s"/usr/lib64/python2.7/UserString.pyR9WscCs|jj|||οΏ½S(N(RR(RR0R"R#((s"/usr/lib64/python2.7/UserString.pyRYscCs
|jjοΏ½S(N(Rtisalpha(R((s"/usr/lib64/python2.7/UserString.pyR:[R
cCs
|jjοΏ½S(N(Rtisalnum(R((s"/usr/lib64/python2.7/UserString.pyR;\R
cCs
|jjοΏ½S(N(Rt	isdecimal(R((s"/usr/lib64/python2.7/UserString.pyR<]R
cCs
|jjοΏ½S(N(Rtisdigit(R((s"/usr/lib64/python2.7/UserString.pyR=^R
cCs
|jjοΏ½S(N(Rtislower(R((s"/usr/lib64/python2.7/UserString.pyR>_R
cCs
|jjοΏ½S(N(Rt	isnumeric(R((s"/usr/lib64/python2.7/UserString.pyR?`R
cCs
|jjοΏ½S(N(Rtisspace(R((s"/usr/lib64/python2.7/UserString.pyR@aR
cCs
|jjοΏ½S(N(Rtistitle(R((s"/usr/lib64/python2.7/UserString.pyRAbR
cCs
|jjοΏ½S(N(Rtisupper(R((s"/usr/lib64/python2.7/UserString.pyRBcR
cCs|jj|οΏ½S(N(Rtjoin(RR((s"/usr/lib64/python2.7/UserString.pyRCdR
cGs|j|jj||οΏ½οΏ½S(N(RRtljust(RR.R*((s"/usr/lib64/python2.7/UserString.pyRDescCs|j|jjοΏ½οΏ½S(N(RRtlower(R((s"/usr/lib64/python2.7/UserString.pyREgR
cCs|j|jj|οΏ½οΏ½S(N(RRtlstrip(Rtchars((s"/usr/lib64/python2.7/UserString.pyRFhR
cCs|jj|οΏ½S(N(Rt	partition(Rtsep((s"/usr/lib64/python2.7/UserString.pyRHisiοΏ½οΏ½οΏ½οΏ½cCs|j|jj|||οΏ½οΏ½S(N(RRtreplace(Rtoldtnewtmaxsplit((s"/usr/lib64/python2.7/UserString.pyRJkscCs|jj|||οΏ½S(N(Rtrfind(RR0R"R#((s"/usr/lib64/python2.7/UserString.pyRNmscCs|jj|||οΏ½S(N(Rtrindex(RR0R"R#((s"/usr/lib64/python2.7/UserString.pyROoscGs|j|jj||οΏ½οΏ½S(N(RRtrjust(RR.R*((s"/usr/lib64/python2.7/UserString.pyRPqscCs|jj|οΏ½S(N(Rt
rpartition(RRI((s"/usr/lib64/python2.7/UserString.pyRQsscCs|j|jj|οΏ½οΏ½S(N(RRtrstrip(RRG((s"/usr/lib64/python2.7/UserString.pyRRuR
cCs|jj||οΏ½S(N(Rtsplit(RRIRM((s"/usr/lib64/python2.7/UserString.pyRSvscCs|jj||οΏ½S(N(Rtrsplit(RRIRM((s"/usr/lib64/python2.7/UserString.pyRTxscCs|jj|οΏ½S(N(Rt
splitlines(Rtkeepends((s"/usr/lib64/python2.7/UserString.pyRUzR
cCs|jj|||οΏ½S(N(Rt
startswith(RtprefixR"R#((s"/usr/lib64/python2.7/UserString.pyRW{scCs|j|jj|οΏ½οΏ½S(N(RRtstrip(RRG((s"/usr/lib64/python2.7/UserString.pyRY}R
cCs|j|jjοΏ½οΏ½S(N(RRtswapcase(R((s"/usr/lib64/python2.7/UserString.pyRZ~R
cCs|j|jjοΏ½οΏ½S(N(RRttitle(R((s"/usr/lib64/python2.7/UserString.pyR[R
cGs|j|jj|οΏ½οΏ½S(N(RRt	translate(RR*((s"/usr/lib64/python2.7/UserString.pyR\οΏ½scCs|j|jjοΏ½οΏ½S(N(RRtupper(R((s"/usr/lib64/python2.7/UserString.pyR]οΏ½R
cCs|j|jj|οΏ½οΏ½S(N(RRtzfill(RR.((s"/usr/lib64/python2.7/UserString.pyR^οΏ½R
N(>t__name__t
__module__RR	RRRRRRRRRR R$R&R'R)t__rmul__R+R,R-tsystmaxintR/tNoneR1R4R5R7R9RR:R;R<R=R>R?R@RARBRCRDRERFRHRJRNRORPRQRRRSRTRURWRYRZR[R\R]R^(((s"/usr/lib64/python2.7/UserString.pyR
sr																																						cBsheZdZddοΏ½ZdZdοΏ½ZdοΏ½ZdοΏ½ZdοΏ½Z	dοΏ½Z
dοΏ½Zd	οΏ½Zd
οΏ½Z
RS(sοΏ½mutable string objects

    Python strings are immutable objects.  This has the advantage, that
    strings may be used as dictionary keys.  If this property isn't needed
    and you insist on changing string values in place instead, you may cheat
    and use MutableString.

    But the purpose of this class is an educational one: to prevent
    people from inventing their own mutable string class derived
    from UserString and than forget thereby to remove (override) the
    __hash__ method inherited from UserString.  This would lead to
    errors that would be very hard to track down.

    A faster and better solution is to rewrite your program using lists.R
cCs-ddlm}|dddοΏ½||_dS(NiοΏ½οΏ½οΏ½οΏ½(twarnpy3ksAthe class UserString.MutableString has been removed in Python 3.0t
stackleveli(twarningsReR(RRRe((s"/usr/lib64/python2.7/UserString.pyRοΏ½s	cCs\t|tοΏ½rοΏ½t|tοΏ½r*|j}nt|tοΏ½sHt|οΏ½}n|jt|jοΏ½οΏ½\}}}|dkrοΏ½|d|d}}|dddοΏ½}n|dkrοΏ½tdοΏ½nt	||οΏ½}|j| ||j||_no|dkr|t|jοΏ½7}n|dks,|t|jοΏ½kr5t
οΏ½n|j| ||j|d|_dS(NiοΏ½οΏ½οΏ½οΏ½is"invalid step in slicing assignmenti(RtsliceRRRRtindicesRt	TypeErrortmint
IndexError(RRR0R"tstoptstep((s"/usr/lib64/python2.7/UserString.pyt__setitem__οΏ½s$!"!	cCst|tοΏ½rοΏ½|jt|jοΏ½οΏ½\}}}|dkrT|d|d}}n|dkrltdοΏ½nt||οΏ½}|j| |j||_nk|dkrοΏ½|t|jοΏ½7}n|dksοΏ½|t|jοΏ½krοΏ½tοΏ½n|j| |j|d|_dS(NiοΏ½οΏ½οΏ½οΏ½is invalid step in slicing deletioni(RRhRiRRRjRkRl(RRR"RmRn((s"/usr/lib64/python2.7/UserString.pyt__delitem__οΏ½s!!	cCsοΏ½t|dοΏ½}t|dοΏ½}t|tοΏ½rR|j| |j|j||_nVt|tοΏ½rοΏ½|j| ||j||_n%|j| t|οΏ½|j||_dS(Ni(R!RRRRR(RR"R#R0((s"/usr/lib64/python2.7/UserString.pyt__setslice__οΏ½s%"cCs=t|dοΏ½}t|dοΏ½}|j| |j||_dS(Ni(R!R(RR"R#((s"/usr/lib64/python2.7/UserString.pyt__delslice__οΏ½scCs
t|jοΏ½S(N(RR(R((s"/usr/lib64/python2.7/UserString.pyt	immutableοΏ½scCs^t|tοΏ½r$|j|j7_n6t|tοΏ½rE|j|7_n|jt|οΏ½7_|S(N(RRRRR(RR%((s"/usr/lib64/python2.7/UserString.pyt__iadd__οΏ½scCs|j|9_|S(N(R(RR(((s"/usr/lib64/python2.7/UserString.pyt__imul__οΏ½scCs||||+dS(N((RRtvalue((s"/usr/lib64/python2.7/UserString.pytinsertοΏ½sN(R_R`t__doc__RRdRRoRpRqRrRsRtRuRw(((s"/usr/lib64/python2.7/UserString.pyRοΏ½s							t__main__is-q(ttest_supports
test.test_(RxRbtcollectionst__all__tSequenceRtMutableSequenceRR_tostpathRStargvt
called_in_dirt	called_astsplitexttpyttestRztverboset
__import__RE(((s"/usr/lib64/python2.7/UserString.pyt<module>sxW


πŸ“