Home | History | Annotate | Download | only in python2.7

Lines Matching refs:percent

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