(argument)
| 292 | |
| 293 | # trick from stackoverflow |
| 294 | def str2bool(argument): |
| 295 | if argument.lower() in ('yes', 'true', 't', 'y', '1'): |
| 296 | return True |
| 297 | elif argument.lower() in ('no', 'false', 'f', 'n', '0'): |
| 298 | return False |
| 299 | else: |
| 300 | raise argparse.ArgumentTypeError('Wrong argument in argparse, should be a boolean') |
| 301 | |
| 302 | |
| 303 | class Logger(object): |
nothing calls this directly
no outgoing calls
no test coverage detected