(v)
| 198 | |
| 199 | |
| 200 | def str2bool(v): |
| 201 | if v.lower() in ('yes', 'true', 't', 'y', '1'): |
| 202 | return True |
| 203 | elif v.lower() in ('no', 'false', 'f', 'n', '0'): |
| 204 | return False |
| 205 | else: |
| 206 | raise argparse.ArgumentTypeError('Boolean value expected.') |
nothing calls this directly
no outgoing calls
no test coverage detected