/opt/alt/python37/lib/python3.7/site-packages/paste/util
NameSizeModeActions
looper/-0755rm
template/-0755rm
__pycache__/-0755rm
classinit.py18490644editdlrm
classinit.pyc19310644editdlrm
classinit.pyo19310644editdlrm
classinstance.py13730644editdlrm
classinstance.pyc23230644editdlrm
classinstance.pyo21610644editdlrm
converters.py8630644editdlrm
converters.pyc11740644editdlrm
converters.pyo11740644editdlrm
dateinterval.py24140644editdlrm
dateinterval.pyc31500644editdlrm
dateinterval.pyo31500644editdlrm
datetimeutil.py111700644editdlrm
datetimeutil.pyc102530644editdlrm
datetimeutil.pyo102530644editdlrm
doctest24.py994180644editdlrm
doctest24.pyc844030644editdlrm
doctest24.pyo841150644editdlrm
filemixin.py14310644editdlrm
filemixin.pyc20620644editdlrm
filemixin.pyo20620644editdlrm
finddata.py38410644editdlrm
finddata.pyc29560644editdlrm
finddata.pyo29560644editdlrm
findpackage.py7860644editdlrm
findpackage.pyc9140644editdlrm
findpackage.pyo9140644editdlrm
import_string.py31100644editdlrm
import_string.pyc33450644editdlrm
import_string.pyo33450644editdlrm
intset.py191310644editdlrm
intset.pyc195320644editdlrm
intset.pyo195320644editdlrm
ip4.py92710644editdlrm
ip4.pyc92430644editdlrm
ip4.pyo92430644editdlrm
killthread.py12290644editdlrm
killthread.pyc14310644editdlrm
killthread.pyo14310644editdlrm
looper.py.tmpta39690644editdlrm
mimeparse.py65920644editdlrm
mimeparse.pyc71580644editdlrm
mimeparse.pyo71580644editdlrm
multidict.py114090644editdlrm
multidict.pyc167200644editdlrm
multidict.pyo167200644editdlrm
PySourceColor.py858650644editdlrm
PySourceColor.pyc556160644editdlrm
PySourceColor.pyo556160644editdlrm
quoting.py24760644editdlrm
quoting.pyc30140644editdlrm
quoting.pyo30140644editdlrm
scgiserver.py56360644editdlrm
scgiserver.pyc61260644editdlrm
scgiserver.pyo60150644editdlrm
string24.py167430644editdlrm
string24.pyc186850644editdlrm
string24.pyo186850644editdlrm
template.py.tmpta242950644editdlrm
threadedprint.py82110644editdlrm
threadedprint.pyc103980644editdlrm
threadedprint.pyo90510644editdlrm
threadinglocal.py14840644editdlrm
threadinglocal.pyc20580644editdlrm
threadinglocal.pyo20580644editdlrm
UserDict24.py55160644editdlrm
UserDict24.pyc105130644editdlrm
UserDict24.pyo105130644editdlrm
__init__.py860644editdlrm
__init__.pyc2570644editdlrm
__init__.pyo2570644editdlrm
Edit: /opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyc (18685B)
Ñò bòNc@s‚dZdZdZdZeeZeZeZeeZdZeddZ dZ dZ eee eZ e eed ƒƒZed ƒieƒZ[dd „Zdad „Zd dkZdd2d„ƒYZdefd„ƒYZdd3d„ƒYZeZeZ eZ!eZ"d„Z#d„Z$d„Z%dd„Z&dd„Z'dd„Z(dd d„Z)e)Z*dd d„Z+dd„ZeZ,d„Z-d „Z.d!„Z/d"„Z0d#„Z1e2Z3e4Z5e6Z7d$„Z8d%d&„Z9d%d'„Z:d(„Z;d)„Z<d*„Z=d+„Z>d,d-„Z?d d.„Z@d/„ZAd d0„ZBy0d d1kClZlZlZlZeeZWneDj onXdS(4súA collection of string operations (most are no longer used). Warning: most of the code you see here isn't normally used nowadays. Beginning with Python 1.6, many of these functions are implemented as methods on the standard string object. They used to be implemented by a built-in module called strop, but strop is now obsolete itself. 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 punctuation -- a string containing all characters considered punctuation printable -- a string containing all characters considered printable s tabcdefghijklmnopqrstuvwxyztABCDEFGHIJKLMNOPQRSTUVWXYZt 0123456789tabcdeftABCDEFt01234567s !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~itcCs>|pdig}|i|ƒD]}||iƒq!~ƒ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. t (tjointsplitt capitalize(tstsept_[1]tx((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pytcapwords/s cCs’t|ƒt|ƒjo td‚ntptdtƒant}tt|ƒ}x,tt|ƒƒD]}||||| 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 lengthRN( tlent ValueErrort_idmapLtmaptNonet_idmaptordtrangeR(tfromstrttostrtLti((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyt maketrans=s iÿÿÿÿNt _multimapcBs eZdZd„Zd„ZRS(s‡Helper class for combining multiple mappings. Used by .{safe_,}substitute() to combine the mapping and keyword arguments. cCs||_||_dS(N(t_primaryt _secondary(tselftprimaryt secondary((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyt__init__[s cCs1y|i|SWntj o|i|SXdS(N(RtKeyErrorR(R tkey((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyt __getitem___s(t__name__t __module__t__doc__R#R&(((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRUs t_TemplateMetaclasscBseZdZd„ZRS(s/ %(delim)s(?: (?P%(delim)s) | # Escape sequence of two delimiters (?P%(id)s) | # delimiter and a Python identifier {(?P%(id)s)} | # delimiter and a braced identifier (?P) # Other ill-formed delimiter exprs ) cCsƒtt|ƒi|||ƒd|jo |i}n+tihti|iƒd6|id6}ti|ti ti Bƒ|_dS(Ntpatterntdelimtid( tsuperR*R#R+t_retescapet delimitert idpatterntcompilet IGNORECASEtVERBOSE(tclstnametbasestdctR+((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR#ps   (R'R(R+R#(((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR*fstTemplatecBsDeZdZeZdZdZd„Zd„Zd„Z d„Z RS(s.A string class for supporting $-substitutions.t$s[_a-z][_a-z0-9]*cCs ||_dS(N(ttemplate(R R<((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR#ƒscCs|idƒ}|i| itƒ}|pd}d}n*|tdi|d ƒƒ}t|ƒ}td||fƒ‚dS(NtinvalidiRiÿÿÿÿs.Invalid placeholder in string: line %d, col %d(tstartR<t splitlinestTrueRRR(R tmoRtlinestcolnotlineno((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyt_invalidˆs  cs„t|ƒdjotdƒ‚n|p |‰n)|ot||dƒ‰n |d‰‡‡fd†}ˆii|ˆiƒS(NisToo many positional argumentsicsš|idƒp |idƒ}|dj oˆ|}d|S|idƒdj oˆiS|idƒdj oˆi|ƒntdˆiƒ‚dS(Ntnamedtbraceds%stescapedR=s#Unrecognized named group in pattern(tgroupRR1RERR+(RARFtval(tmappingR (sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pytconvertžs   (Rt TypeErrorRR+tsubR<(R targstkwsRL((R RKsD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyt substitute”s  cs„t|ƒdjotdƒ‚n|p |‰n)|ot||dƒ‰n |d‰‡‡fd†}ˆii|ˆiƒS(NisToo many positional argumentsic sö|idƒ}|dj o2ydˆ|SWqNtj oˆi|SXn|idƒ}|dj o:ydˆ|SWq¤tj oˆid|dSXn|idƒdj oˆiS|idƒdj oˆiStdˆiƒ‚dS( NRFs%sRGt{t}RHR=s#Unrecognized named group in pattern(RIRR$R1RR+(RARFRG(RKR (sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRL¸s$  (RRMRR+RNR<(R RORPRL((R RKsD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pytsafe_substitute®s  ( R'R(R)R*t __metaclass__R1R2R#RERQRT(((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR:|s  cCs |iƒS(sSlower(s) -> string Return a copy of the string s converted to lowercase. (tlower(R ((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRVÜscCs |iƒS(sSupper(s) -> string Return a copy of the string s converted to uppercase. (tupper(R ((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRWåscCs |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 ((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRXîscCs |i|ƒS(sstrip(s [,chars]) -> string Return a copy of the string s with leading and trailing whitespace removed. If chars is given and not None, remove characters in chars instead. If chars is unicode, S will be converted to unicode before stripping. (tstrip(R tchars((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRYøs cCs |i|ƒS(s®lstrip(s [,chars]) -> string Return a copy of the string s with leading whitespace removed. If chars is given and not None, remove characters in chars instead. (tlstrip(R RZ((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR[scCs |i|ƒS(s¯rstrip(s [,chars]) -> string Return a copy of the string s with trailing whitespace removed. If chars is given and not None, remove characters in chars instead. (trstrip(R RZ((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR\scCs|i||ƒS(srsplit(s [,sep [,maxsplit]]) -> list of strings Return a list of the words in the string s, using sep as the delimiter string. If maxsplit is given, splits at no more than maxsplit places (resulting in at most maxsplit+1 words). If sep is not specified or is None, any whitespace string is a separator. (split and splitfields are synonymous) (R (R R tmaxsplit((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR s cCs|i||ƒS(sWrsplit(s [,sep [,maxsplit]]) -> list of strings Return a list of the words in the string s, using sep as the delimiter string, starting at the end of the string and working to the front. If maxsplit is given, at most maxsplit splits are done. If sep is not specified or is None, any whitespace string is a separator. (trsplit(R R R]((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR^(s RcCs |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) (R(twordsR ((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR4s cGs |i|ŒS(spindex(s, sub [,start [,end]]) -> int Like find but raises ValueError when the substring is not found. (tindex(R RO((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR`BscGs |i|ŒS(srrindex(s, sub [,start [,end]]) -> int Like rfind but raises ValueError when the substring is not found. (trindex(R RO((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRaKscGs |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. (tcount(R RO((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRbTscGs |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. (tfind(R RO((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRc_s cGs |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. (trfind(R RO((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRdls cCs t|ƒS(sYatof(s) -> float Return the floating point number represented by the string s. (t_float(R ((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pytatof~si cCs t||ƒS(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. (t_int(R tbase((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pytatoiˆs cCs t||ƒS(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. (t_long(R Rh((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pytatol—s cGs|i||ŒS(sõljust(s, width[, fillchar]) -> 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. If specified the fillchar is used instead of spaces. (tljust(R twidthRO((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRl§scGs|i||ŒS(sörjust(s, width[, fillchar]) -> 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. If specified the fillchar is used instead of spaces. (trjust(R RmRO((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRn²scGs|i||ŒS(sîcenter(s, width[, fillchar]) -> string Return a center version of s, in a field of the specified width. padded with spaces as needed. The string is never truncated. If specified the fillchar is used instead of spaces. (tcenter(R RmRO((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRo½scCs-t|tƒpt|ƒ}n|i|ƒ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. (t isinstancet basestringtreprtzfill(RRm((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRsÊsicCs |i|ƒ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). (t expandtabs(R ttabsize((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRt×scCs1|o|i||ƒS|i||d ƒSdS(sgtranslate(s,table [,deletions]) -> string Return a copy of the string s, where all characters occurring in the optional argument deletions are removed, and the remaining characters have been mapped through the given translation table, which must be a string of length 256. The deletions argument is not allowed for Unicode strings. iN(t translate(R ttablet deletions((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRvâs cCs |iƒS(socapitalize(s) -> string Return a copy of the string s with only its first character capitalized. (R (R ((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyR õscCs|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]((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pyRyÿs(Rt lowercaset uppercaset whitespace(((ER)R~R|R}tletterstascii_lowercasetascii_uppercaset ascii_letterstdigitst hexdigitst octdigitst punctuationt printableRtchrtxrangetltstrRRRRRRtreR/RttypeR*R:Rt index_errort atoi_errort atof_errort atol_errorRVRWRXRYR[R\R t splitfieldsR^t joinfieldsR`RaRbRcRdtfloatRetintRgtlongRjRfRiRkRlRnRoRsRtRvR Rytstropt ImportError(((sD/opt/alt/python37/lib/python3.7/site-packages/paste/util/string24.pytsz     Z        "