(v)
| 260 | |
| 261 | |
| 262 | def str2bool(v): |
| 263 | if isinstance(v, bool): |
| 264 | return v |
| 265 | if v.lower() in ('yes', 'true', 't', 'y', '1'): |
| 266 | return True |
| 267 | elif v.lower() in ('no', 'false', 'f', 'n', '0'): |
| 268 | return False |
| 269 | else: |
| 270 | raise argparse.ArgumentTypeError('Boolean value expected.') |
| 271 | |
| 272 | |
| 273 | if __name__ == "__main__": |
nothing calls this directly
no outgoing calls
no test coverage detected