Home | History | Annotate | Download | only in Lib

Lines Matching refs:percent

187 def format(percent, value, grouping=False, monetary=False, *additional):
189 (percent).
193 # this is only for one-percent-specifier strings and this should be checked
194 match = _percent_re.match(percent)
195 if not match or len(match.group())!= len(percent):
197 "format specifier, %s not valid") % repr(percent))
198 return _format(percent, value, grouping, monetary, *additional)
200 def _format(percent, value, grouping=False, monetary=False, *additional):
202 formatted = percent % ((value,) + additional)
204 formatted = percent % value
206 if percent[-1] in 'eEfFgG':
216 elif percent[-1] in 'diu':