%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/__pycache__/string.cpython-38.pyc

U

na')@sdZddddddddd	d
ddgZd
dlZdZdZdZeeZdZeddZdZ	dZ
eee
eZdddZd
dl
Zd
dlmZiZGdddeZGdddedZGdddZdS)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_lettersascii_lowercaseascii_uppercasecapwordsdigits	hexdigits	octdigits	printablepunctuation
whitespace	FormatterTemplateNz 	

abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789ZabcdefZABCDEF01234567z !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~cCs|pddd||DS)acapwords(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|]}|VqdSN)
capitalize).0xr"/usr/local/lib/python3.8/string.py	<genexpr>0szcapwords.<locals>.<genexpr>)joinsplit)sseprrrr%s)ChainMapcs eZdZdZfddZZS)_TemplateMetaclassa/
    %(delim)s(?:
      (?P<escaped>%(delim)s) |   # Escape sequence of two delimiters
      (?P<named>%(id)s)      |   # delimiter and a Python identifier
      {(?P<braced>%(bid)s)}  |   # delimiter and a braced identifier
      (?P<invalid>)              # Other ill-formed delimiter exprs
    )
    csbtt||||d|kr$|j}n$tjt|j|j|jp@|jd}t	||j
tjB|_dS)Npattern)delimidbid)superr__init__r _reescape	delimiter	idpatternbraceidpatterncompileflagsVERBOSE)clsnamebasesdctr 	__class__rrr%Cs

z_TemplateMetaclass.__init__)__name__
__module____qualname__r r%
__classcell__rrr2rr9s	rc@sJeZdZdZdZdZdZejZ	ddZ
ddZefd	d
Z
efddZdS)
rz.A string class for supporting $-substitutions.$z(?a:[_a-z][_a-z0-9]*)NcCs
||_dSr)template)selfr9rrrr%\szTemplate.__init__cCsd|d}|jd|jdd}|s.d}d}n"|td|dd}t|}td||fdS)NinvalidT)keependsz.Invalid placeholder in string: line %d, col %d)startr9
splitlineslenr
ValueError)r:moilinescolnolinenorrr_invalidas
zTemplate._invalidcs:tkr|n|rt|fdd}j|jS)Ncsd|dp|d}|dk	r(t|S|ddk	r<jS|ddk	rT|tdjdSNnamedbracedescapedr;z#Unrecognized named group in pattern)groupstrr(rIrCr rDrKmappingr:rrconvertss
z$Template.substitute.<locals>.convert_sentinel_dict	_ChainMapr subr9r:rRkwsrSrrQr
substitutems
zTemplate.substitutecs:tkr|n|rt|fdd}j|jS)Ncs|dp|d}|dk	rHzt|WStk
rF|YSX|ddk	r\jS|ddk	rr|StdjdSrJ)rNrOKeyErrorr(rCr rPrQrrrSsz)Template.safe_substitute.<locals>.convertrTrXrrQrsafe_substitutes

zTemplate.safe_substitute)r4r5r6__doc__r(r)r*r&
IGNORECASEr,r%rIrUrZr\rrrrrPs)	metaclassc@sVeZdZddZddZdddZdd	Zd
dZdd
ZddZ	ddZ
ddZdS)rcOs||||Sr)vformat)r:
format_stringargskwargsrrrformatszFormatter.formatcCs.t}|||||d\}}|||||S)N)set_vformatcheck_unused_args)r:rarbrc	used_argsresult_rrrr`szFormatter.vformatr
c	Cs|dkrtdg}||D]\}}	}
}|r8|||	dk	r|	dkrj|dkrXtdt|}	|d7}n|	r|r~tdd}||	||\}}
||
|||}|j|
||||d|d\}
}||	||
qd
||fS)Nr
zMax string recursion exceededr>FzJcannot switch from manual field specification to automatic field numberingr=)auto_arg_index)rCparseappendrOisdigit	get_fieldadd
convert_fieldrgformat_fieldr)r:rarbrcrirecursion_depthrlrjliteral_text
field_nameformat_spec
conversionobjarg_usedrrrrgs<



zFormatter._vformatcCst|tr||S||SdSr)
isinstanceint)r:keyrbrcrrr	get_values
zFormatter.get_valuecCsdSrr)r:rirbrcrrrrhszFormatter.check_unused_argscCs
t||Sr)rd)r:valuerwrrrrsszFormatter.format_fieldcCsN|dkr|S|dkrt|S|dkr,t|S|dkr<t|Std|dS)Nrraz"Unknown conversion specifier {0!s})rOreprasciirCrd)r:rrxrrrrrszFormatter.convert_fieldcCs
t|Sr)_stringformatter_parser)r:rarrrrmszFormatter.parsec	CsJt|\}}||||}|D] \}}|r8t||}q ||}q ||fSr)rformatter_field_name_splitr~getattr)	r:rvrbrcfirstrestryis_attrrErrrrp
s
zFormatter.get_fieldN)r
)r4r5r6rdr`rgr~rhrsrrrmrprrrrrs
6	)N)r]__all__rr
rrrrrrr	rrrer&collectionsrrVrUtyperrrrrrr<module>s6
Q

Zerion Mini Shell 1.0