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/python3.6/__pycache__/



โฌ†๏ธ Go up: /lib64/python3.6

๐Ÿ“„ Viewing: string.cpython-36.pyc

3


 \.๏ฟฝ@s๏ฟฝdZddddddddd	d
ddgZd
dlZdZdZdZeeZdZeddZdZ	dZ
eee
eZddd๏ฟฝZd
dl
Zd
dlmZGdd๏ฟฝde๏ฟฝZGdd๏ฟฝded๏ฟฝZGdd๏ฟฝd๏ฟฝZdS)anA collection of string constants.

Public module variables:

whitespace -- a string containing all ASCII whitespace
ascii_lowercase -- a string containing all ASCII lowercase letters
ascii_uppercase -- a string containing all ASCII uppercase letters
ascii_letters -- a string containing all ASCII letters
digits -- a string containing all ASCII decimal digits
hexdigits -- a string containing all ASCII hexadecimal digits
octdigits -- a string containing all ASCII octal digits
punctuation -- a string containing all ASCII punctuation characters
printable -- a string containing all ASCII characters considered printable

๏ฟฝ
ascii_letters๏ฟฝascii_lowercase๏ฟฝascii_uppercase๏ฟฝcapwords๏ฟฝdigits๏ฟฝ	hexdigits๏ฟฝ	octdigits๏ฟฝ	printable๏ฟฝpunctuation๏ฟฝ
whitespace๏ฟฝ	Formatter๏ฟฝTemplate๏ฟฝNz 	

ZabcdefghijklmnopqrstuvwxyzZABCDEFGHIJKLMNOPQRSTUVWXYZ๏ฟฝ
0123456789ZabcdefZABCDEFZ01234567z !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~cCs|pdjdd๏ฟฝ|j|๏ฟฝD๏ฟฝ๏ฟฝS)a๏ฟฝcapwords(s [,sep]) -> string

    Split the argument into words using split, capitalize each
    word using capitalize, and join the capitalized words using
    join.  If the optional second argument sep is absent or None,
    runs of whitespace characters are replaced by a single space
    and leading and trailing whitespace are removed, otherwise
    sep is used to split and join the words.

    ๏ฟฝ css|]}|j๏ฟฝVqdS)N)๏ฟฝ
capitalize)๏ฟฝ.0๏ฟฝx๏ฟฝr๏ฟฝ/usr/lib64/python3.6/string.py๏ฟฝ	<genexpr>0szcapwords.<locals>.<genexpr>)๏ฟฝjoin๏ฟฝsplit)๏ฟฝs๏ฟฝseprrrr%s)๏ฟฝChainMapcs eZdZdZ๏ฟฝfdd๏ฟฝZ๏ฟฝZS)๏ฟฝ_TemplateMetaclassa/
    %(delim)s(?:
      (?P<escaped>%(delim)s) |   # Escape sequence of two delimiters
      (?P<named>%(id)s)      |   # delimiter and a Python identifier
      {(?P<braced>%(id)s)}   |   # delimiter and a braced identifier
      (?P<invalid>)              # Other ill-formed delimiter exprs
    )
    csXtt|๏ฟฝj|||๏ฟฝd|kr$|j}ntjtj|j๏ฟฝ|jd๏ฟฝ}tj||j	tj
B๏ฟฝ|_dS)N๏ฟฝpattern)Zdelim๏ฟฝid)๏ฟฝsuperr๏ฟฝ__init__r๏ฟฝ_re๏ฟฝescape๏ฟฝ	delimiter๏ฟฝ	idpattern๏ฟฝcompile๏ฟฝflags๏ฟฝVERBOSE)๏ฟฝcls๏ฟฝname๏ฟฝbasesZdctr)๏ฟฝ	__class__rrrAs
z_TemplateMetaclass.__init__)๏ฟฝ__name__๏ฟฝ
__module__๏ฟฝ__qualname__rr๏ฟฝ
__classcell__rr)r*rr7src@s>eZdZdZdZdZejZdd๏ฟฝZ	dd๏ฟฝZ
dd	๏ฟฝZd
d๏ฟฝZdS)
rz.A string class for supporting $-substitutions.๏ฟฝ$z(?-i:[_a-zA-Z][_a-zA-Z0-9]*)cCs
||_dS)N)๏ฟฝtemplate)๏ฟฝselfr0rrrrXszTemplate.__init__cCsd|jd๏ฟฝ}|jd|๏ฟฝjdd๏ฟฝ}|s.d}d}n"|tdj|dd๏ฟฝ๏ฟฝ๏ฟฝ}t|๏ฟฝ}td||f๏ฟฝ๏ฟฝdS)N๏ฟฝinvalidT)๏ฟฝkeepends๏ฟฝ๏ฟฝz.Invalid placeholder in string: line %d, col %d๏ฟฝ๏ฟฝ๏ฟฝ)๏ฟฝstartr0๏ฟฝ
splitlines๏ฟฝlenr๏ฟฝ
ValueError)r1๏ฟฝmo๏ฟฝi๏ฟฝlines๏ฟฝcolno๏ฟฝlinenorrr๏ฟฝ_invalid]s
zTemplate._invalidcsl|std๏ฟฝ๏ฟฝ|^๏ฟฝ}t|๏ฟฝdkr(td๏ฟฝ๏ฟฝ|s2|๏ฟฝn|rFt||d๏ฟฝ๏ฟฝn|d๏ฟฝ๏ฟฝ๏ฟฝfdd๏ฟฝ}๏ฟฝjj|๏ฟฝj๏ฟฝS)Nz>descriptor 'substitute' of 'Template' object needs an argumentr4zToo many positional argumentsr
csd|jd๏ฟฝp|jd๏ฟฝ}|dk	r(t๏ฟฝ|๏ฟฝS|jd๏ฟฝdk	r<๏ฟฝjS|jd๏ฟฝdk	rT๏ฟฝj|๏ฟฝtd๏ฟฝj๏ฟฝ๏ฟฝdS)N๏ฟฝnamed๏ฟฝbraced๏ฟฝescapedr2z#Unrecognized named group in pattern)๏ฟฝgroup๏ฟฝstrr"r@r:r)r;rA)๏ฟฝmappingr1rr๏ฟฝconvertws
z$Template.substitute.<locals>.convert)๏ฟฝ	TypeErrorr9๏ฟฝ	_ChainMapr๏ฟฝsubr0)๏ฟฝargs๏ฟฝkwsrGr)rFr1r๏ฟฝ
substituteiszTemplate.substitutecsl|std๏ฟฝ๏ฟฝ|^๏ฟฝ}t|๏ฟฝdkr(td๏ฟฝ๏ฟฝ|s2|๏ฟฝn|rFt||d๏ฟฝ๏ฟฝn|d๏ฟฝ๏ฟฝ๏ฟฝfdd๏ฟฝ}๏ฟฝjj|๏ฟฝj๏ฟฝS)NzCdescriptor 'safe_substitute' of 'Template' object needs an argumentr4zToo many positional argumentsr
cs||jd๏ฟฝp|jd๏ฟฝ}|dk	rByt๏ฟฝ|๏ฟฝStk
r@|j๏ฟฝSX|jd๏ฟฝdk	rV๏ฟฝjS|jd๏ฟฝdk	rl|j๏ฟฝStd๏ฟฝj๏ฟฝ๏ฟฝdS)NrArBrCr2z#Unrecognized named group in pattern)rDrE๏ฟฝKeyErrorr"r:r)r;rA)rFr1rrrG๏ฟฝs
z)Template.safe_substitute.<locals>.convert)rHr9rIrrJr0)rKrLrGr)rFr1r๏ฟฝsafe_substitute๏ฟฝs
zTemplate.safe_substituteN)
r+r,r-๏ฟฝ__doc__r"r#r ๏ฟฝ
IGNORECASEr%rr@rMrOrrrrrMs)๏ฟฝ	metaclassc@sVeZdZdd๏ฟฝZdd๏ฟฝZddd๏ฟฝZdd	๏ฟฝZd
d๏ฟฝZdd
๏ฟฝZdd๏ฟฝZ	dd๏ฟฝZ
dd๏ฟฝZdS)rcOsz|std๏ฟฝ๏ฟฝ|^}}y|^}}WnJtk
rjd|kr\|jd๏ฟฝ}ddl}|jdtdd๏ฟฝn
td๏ฟฝd๏ฟฝYnX|j|||๏ฟฝS)Nz;descriptor 'format' of 'Formatter' object needs an argument๏ฟฝ
format_stringr
z9Passing 'format_string' as keyword argument is deprecated๏ฟฝ)๏ฟฝ
stacklevelz@format() missing 1 required positional argument: 'format_string')rHr:๏ฟฝpop๏ฟฝwarnings๏ฟฝwarn๏ฟฝDeprecationWarning๏ฟฝvformat)rK๏ฟฝkwargsr1rSrWrrr๏ฟฝformat๏ฟฝs

zFormatter.formatcCs.t๏ฟฝ}|j||||d๏ฟฝ\}}|j|||๏ฟฝ|S)NrT)๏ฟฝset๏ฟฝ_vformat๏ฟฝcheck_unused_args)r1rSrKr[๏ฟฝ	used_args๏ฟฝresult๏ฟฝ_rrrrZ๏ฟฝszFormatter.vformatr
c	Cs๏ฟฝ|dkrtd๏ฟฝ๏ฟฝg}x๏ฟฝ|j|๏ฟฝD]๏ฟฝ\}}	}
}|r:|j|๏ฟฝ|	dk	r |	dkrl|dkrZtd๏ฟฝ๏ฟฝt|๏ฟฝ}	|d7}n|	j๏ฟฝr๏ฟฝ|r๏ฟฝtd๏ฟฝ๏ฟฝd}|j|	||๏ฟฝ\}}
|j|
๏ฟฝ|j||๏ฟฝ}|j|
||||d|d๏ฟฝ\}
}|j|j	||
๏ฟฝ๏ฟฝq Wdj
|๏ฟฝ|fS)Nr
zMax string recursion exceededr5FzJcannot switch from manual field specification to automatic field numberingr4)๏ฟฝauto_arg_index)r:๏ฟฝparse๏ฟฝappendrE๏ฟฝisdigit๏ฟฝ	get_field๏ฟฝadd๏ฟฝ
convert_fieldr^๏ฟฝformat_fieldr)r1rSrKr[r`Zrecursion_depthrcraZliteral_text๏ฟฝ
field_name๏ฟฝformat_spec๏ฟฝ
conversion๏ฟฝobjZarg_usedrrrr^๏ฟฝs4


zFormatter._vformatcCst|t๏ฟฝr||S||SdS)N)๏ฟฝ
isinstance๏ฟฝint)r1๏ฟฝkeyrKr[rrr๏ฟฝ	get_value๏ฟฝs
zFormatter.get_valuecCsdS)Nr)r1r`rKr[rrrr_szFormatter.check_unused_argscCs
t||๏ฟฝS)N)r\)r1๏ฟฝvaluerlrrrrjszFormatter.format_fieldcCsN|dkr|S|dkrt|๏ฟฝS|dkr,t|๏ฟฝS|dkr<t|๏ฟฝStdj|๏ฟฝ๏ฟฝ๏ฟฝdS)Nr๏ฟฝr๏ฟฝaz"Unknown conversion specifier {0!s})rE๏ฟฝrepr๏ฟฝasciir:r\)r1rsrmrrrriszFormatter.convert_fieldcCs
tj|๏ฟฝS)N)๏ฟฝ_stringZformatter_parser)r1rSrrrrdszFormatter.parsec	CsNtj|๏ฟฝ\}}|j|||๏ฟฝ}x(|D] \}}|r:t||๏ฟฝ}q"||}q"W||fS)N)rxZformatter_field_name_splitrr๏ฟฝgetattr)	r1rkrKr[๏ฟฝfirst๏ฟฝrestrnZis_attrr<rrrrg(szFormatter.get_fieldN)r
)r+r,r-r\rZr^rrr_rjrirdrgrrrrr๏ฟฝs
5	)N)rP๏ฟฝ__all__rxr
rrrrrrr	rr๏ฟฝrer ๏ฟฝcollectionsrrI๏ฟฝtyperrrrrrr๏ฟฝ<module>s&


`


๐Ÿ“