(option, opt, value)
| 415 | "complex" : (complex, _("complex")) } |
| 416 | |
| 417 | def check_builtin(option, opt, value): |
| 418 | (cvt, what) = _builtin_cvt[option.type] |
| 419 | try: |
| 420 | return cvt(value) |
| 421 | except ValueError: |
| 422 | raise OptionValueError( |
| 423 | _("option %s: invalid %s value: %r") % (opt, what, value)) |
| 424 | |
| 425 | def check_choice(option, opt, value): |
| 426 | if value in option.choices: |
nothing calls this directly
no test coverage detected