(kwarg_str)
| 16 | |
| 17 | |
| 18 | def parse_kwarg(kwarg_str): |
| 19 | key, value = map(string.strip, kwarg_str.split("=", 1)) |
| 20 | try: |
| 21 | value = int(value) |
| 22 | except ValueError: |
| 23 | try: |
| 24 | value = float(value) |
| 25 | except ValueError: |
| 26 | pass |
| 27 | return key, value |
| 28 | |
| 29 | |
| 30 | def main(args): |
nothing calls this directly
no test coverage detected
searching dependent graphs…