Determine sign character.
(is_negative, spec)
| 6324 | return sep.join(reversed(groups)) |
| 6325 | |
| 6326 | def _format_sign(is_negative, spec): |
| 6327 | """Determine sign character.""" |
| 6328 | |
| 6329 | if is_negative: |
| 6330 | return '-' |
| 6331 | elif spec['sign'] in ' +': |
| 6332 | return spec['sign'] |
| 6333 | else: |
| 6334 | return '' |
| 6335 | |
| 6336 | def _format_number(is_negative, intpart, fracpart, exp, spec): |
| 6337 | """Format a number, given the following data: |
no outgoing calls
no test coverage detected