Home | History | Annotate | Download | only in Lib

Lines Matching refs:percent

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