(percent, value, grouping=False, monetary=False, *additional)
| 179 | _percent_re = None |
| 180 | |
| 181 | def _format(percent, value, grouping=False, monetary=False, *additional): |
| 182 | if additional: |
| 183 | formatted = percent % ((value,) + additional) |
| 184 | else: |
| 185 | formatted = percent % value |
| 186 | if percent[-1] in 'eEfFgGdiu': |
| 187 | formatted = _localize(formatted, grouping, monetary) |
| 188 | return formatted |
| 189 | |
| 190 | # Transform formatted as locale number according to the locale settings |
| 191 | def _localize(formatted, grouping=False, monetary=False): |
no test coverage detected
searching dependent graphs…