Home | History | Annotate | Download | only in Lib

Lines Matching refs:percent

179 def format(percent, value, grouping=False, monetary=False, *additional):

181 (percent).
185 # this is only for one-percent-specifier strings and this should be checked
186 match = _percent_re.match(percent)
187 if not match or len(match.group())!= len(percent):
189 "format specifier, %s not valid") % repr(percent))
190 return _format(percent, value, grouping, monetary, *additional)
192 def _format(percent, value, grouping=False, monetary=False, *additional):
194 formatted = percent % ((value,) + additional)
196 formatted = percent % value
198 if percent[-1] in 'eEfFgG':
208 elif percent[-1] in 'diu':