b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/stringold.pyo
Size12.3 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:23
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc @sQdZddklZeddd�[dZdZdZeeZd Zed
d Zd Z d
Z
x$e d�D]Z e
e
e �Z
qrW[ eZeZeZeZd�Zd�Zd�Zd�Zd�Zd�Zd.dd�ZeZdd�ZeZeZd�Z d�Z!d�Z"d�Z#d�Z$e%Z&e'Z(e)Z*e+d
�Z,d�Z-d�Z.d �Z/d!�Z0d"�Z1d#�Z2d$�Z3d%d&�Z4d
d'�Z5d(�Z6d.d)�Z7d.a8d*�Z9dd+�Z:y d
iWne;j
odd,k<TnXy0dd-k=l9Z9lZlZlZeeZWne>j
onXd.S(/s8Common string manipulations.

Public module variables:

whitespace -- a string containing all characters considered whitespace
lowercase -- a string containing all characters considered lowercase letters
uppercase -- a string containing all characters considered uppercase letters
letters -- a string containing all characters considered letters
digits -- a string containing all characters considered decimal digits
hexdigits -- a string containing all characters considered hexadecimal digits
octdigits -- a string containing all characters considered octal digits

iÿÿÿÿ(twarnpy3ks3the stringold module has been removed in Python 3.0t
stacklevelis
tabcdefghijklmnopqrstuvwxyztABCDEFGHIJKLMNOPQRSTUVWXYZt
0123456789tabcdeftABCDEFt01234567ticCs
|i�S(sSlower(s) -> string

Return a copy of the string s converted to lowercase.

(tlower(ts((s!/usr/lib64/python2.6/stringold.pyR .scCs
|i�S(sSupper(s) -> string

Return a copy of the string s converted to uppercase.

(tupper(R
((s!/usr/lib64/python2.6/stringold.pyR 7scCs
|i�S(s�swapcase(s) -> string

Return a copy of the string s with upper case characters
converted to lowercase and vice versa.

(tswapcase(R
((s!/usr/lib64/python2.6/stringold.pyR @scCs
|i�S(smstrip(s) -> string

Return a copy of the string s with leading and trailing
whitespace removed.

(tstrip(R
((s!/usr/lib64/python2.6/stringold.pyR
JscCs
|i�S(s]lstrip(s) -> string

Return a copy of the string s with leading whitespace removed.

(tlstrip(R
((s!/usr/lib64/python2.6/stringold.pyRTscCs
|i�S(sbrstrip(s) -> string

Return a copy of the string s with trailing whitespace
removed.

(trstrip(R
((s!/usr/lib64/python2.6/stringold.pyR]sicCs|i||�S(sVsplit(str [,sep [,maxsplit]]) -> list of strings

Return a list of the words in the string s, using sep as the
delimiter string. If maxsplit is nonzero, splits into at most
maxsplit words If sep is not specified, any whitespace string
is a separator. Maxsplit defaults to 0.

(split and splitfields are synonymous)

(tsplit(R
tseptmaxsplit((s!/usr/lib64/python2.6/stringold.pyRhs t cCs
|i|�S(sÖjoin(list [,sep]) -> string

Return a string composed of the words in list, with
intervening occurrences of sep. The default separator is a
single space.

(joinfields and join are synonymous)

(tjoin(twordsR((s!/usr/lib64/python2.6/stringold.pyRws
cGst|i|�S(spindex(s, sub [,start [,end]]) -> int

Like find but raises ValueError when the substring is not found.

(t_applytindex(R
targs((s!/usr/lib64/python2.6/stringold.pyR�scGst|i|�S(srrindex(s, sub [,start [,end]]) -> int

Like rfind but raises ValueError when the substring is not found.

(Rtrindex(R
R((s!/usr/lib64/python2.6/stringold.pyR�scGst|i|�S(sÈcount(s, sub[, start[,end]]) -> int

Return the number of occurrences of substring sub in string
s[start:end]. Optional arguments start and end are
interpreted as in slice notation.

(Rtcount(R
R((s!/usr/lib64/python2.6/stringold.pyR�scGst|i|�S(sfind(s, sub [,start [,end]]) -> in

Return the lowest index in s where substring sub is found,
such that sub is contained within s[start,end]. Optional
arguments start and end are interpreted as in slice notation.

Return -1 on failure.

(Rtfind(R
R((s!/usr/lib64/python2.6/stringold.pyR¥s
cGst|i|�S(srfind(s, sub [,start [,end]]) -> int

Return the highest index in s where substring sub is found,
such that sub is contained within s[start,end]. Optional
arguments start and end are interpreted as in slice notation.

Return -1 on failure.

(Rtrfind(R
R((s!/usr/lib64/python2.6/stringold.pyR²s
cCs;t|�tjo t|�Stdt|�i��dS(sYatof(s) -> float

Return the floating point number represented by the string s.

s%argument 1: expected string, %s foundN(ttypet _StringTypet_floatt TypeErrort__name__(R
((s!/usr/lib64/python2.6/stringold.pytatofÅs cGsxy|d}Wn)tj
otdt|���nXt|�tjott|�Stdt|�i��dS(ssatoi(s [,base]) -> int

Return the integer represented by the string s in the given
base, which defaults to 10. The string s must consist of one
or more digits, possibly preceded by a sign. If base is 0, it
is chosen from the leading characters of s, 0 for octal, 0x or
0X for hexadecimal. If base is 16, a preceding 0x or 0X is
accepted.

is/function requires at least 1 argument: %d givens%argument 1: expected string, %s foundN(t
IndexErrorR tlenRRRt_intR!(RR
((s!/usr/lib64/python2.6/stringold.pytatoiÒs cGsxy|d}Wn)tj
otdt|���nXt|�tjott|�Stdt|�i��dS(s³atol(s [,base]) -> long

Return the long integer represented by the string s in the
given base, which defaults to 10. The string s must consist
of one or more digits, possibly preceded by a sign. If base
is 0, it is chosen from the leading characters of s, 0 for
octal, 0x or 0X for hexadecimal. If base is 16, a preceding
0x or 0X is accepted. A trailing L or l is not accepted,
unless base is 0.

is/function requires at least 1 argument: %d givens%argument 1: expected string, %s foundN(R#R R$RRRt_longR!(RR
((s!/usr/lib64/python2.6/stringold.pytatolís cCs.|t|�}|djo|S|d|S(s³ljust(s, width) -> string

Return a left-justified version of s, in a field of the
specified width, padded with spaces as needed. The string is
never truncated.

iR(R$(R
twidthtn((s!/usr/lib64/python2.6/stringold.pytljust s
cCs.|t|�}|djo|Sd||S(s´rjust(s, width) -> string

Return a right-justified version of s, in a field of the
specified width, padded with spaces as needed. The string is
never truncated.

iR(R$(R
R)R*((s!/usr/lib64/python2.6/stringold.pytrjusts
cCsh|t|�}|djo|S|d}|do|do|d}nd||d||S(s¬center(s, width) -> string

Return a center version of s, in a field of the specified
width. padded with spaces as needed. The string is never
truncated.

iiiR(R$(R
R)R*thalf((s!/usr/lib64/python2.6/stringold.pytcenter#s

cCs�t|�td�jo
|}n
t|�}t|�}||jo|Sd}|ddjo|d|d}}n|d|||S(s¡zfill(x, width) -> string

Pad a numeric string x with zeros on the left, to fill a field
of the specified width. The string x is never truncated.

Rit-t+it0(R/R0(RtreprR$(txR)R
R*tsign((s!/usr/lib64/python2.6/stringold.pytzfill6s
  
icCswd}}xb|D]Z}|djod|t|�|}n||}|djo||}d}qqW||S(s×expandtabs(s [,tabsize]) -> string

Return a copy of the string s with all tab characters replaced
by the appropriate number of spaces, depending on the current
column, and the tabsize (default 8).

Rs Rs
(R$(R
ttabsizetrestlinetc((s!/usr/lib64/python2.6/stringold.pyt
expandtabsHs




cCs|i||�S(s+translate(s,table [,deletechars]) -> string

Return a copy of the string s, where all characters occurring
in the optional argument deletechars are removed, and the
remaining characters have been mapped through the given
translation table, which must be a string of length 256.

(t translate(R
ttablet deletions((s!/usr/lib64/python2.6/stringold.pyR;[s cCs
|i�S(socapitalize(s) -> string

Return a copy of the string s with only its first character
capitalized.

(t
capitalize(R
((s!/usr/lib64/python2.6/stringold.pyR>gscCs&ttt|i|��|pd�S(sùcapwords(s, [sep]) -> string

Split the argument into words using split, capitalize each
word using capitalize, and join the capitalized words using
join. Note that this replaces runs of whitespace characters by
a single space.

R(RtmapR>R(R
R((s!/usr/lib64/python2.6/stringold.pytcapwordsqs cCs�t|�t|�jo
td�ntptt�ant}tt|�}x,tt|��D]}|||||<qfWt|d�S(sÁmaketrans(frm, to) -> string

Return a translation table (a string of 256 bytes long)
suitable for use in string.translate. The strings frm and to
must be of the same length.

s)maketrans arguments must have same lengthR( R$t
ValueErrort_idmapLtlistt_idmapR?tordtrangeR(tfromstrttostrtLti((s!/usr/lib64/python2.6/stringold.pyt maketrans~s
cCs|i|||�S(sñreplace (str, old, new[, maxsplit]) -> string

Return a copy of string str with all occurrences of substring
old replaced by new. If the optional argument maxsplit is
given, only the first maxsplit occurrences are replaced.

(treplace(R
toldtnewR((s!/usr/lib64/python2.6/stringold.pyRL�s(t*(RKt lowercaset uppercaset
whitespaceN(?t__doc__twarningsRRRRPRQtletterstdigitst hexdigitst octdigitsRDRFRJtchrRAt index_errort
atoi_errort
atof_errort
atol_errorR R R R
RRtNoneRt splitfieldsRt
joinfieldstapplyRRRRRRtfloatRtintR%tlongR'RRR"R&R(R+R,R.R5R:R;R>R@RBRKRLtAttributeErrort stringoldtstropt ImportError(((s!/usr/lib64/python2.6/stringold.pyt<module>s|



  

 
 

  
   "