(val)
| 409 | |
| 410 | |
| 411 | def validate_string(val): |
| 412 | if val is None: |
| 413 | return None |
| 414 | if not isinstance(val, str): |
| 415 | raise TypeError("Not a string: %s" % val) |
| 416 | return val.strip() |
| 417 | |
| 418 | |
| 419 | def validate_file_exists(val): |
no outgoing calls
no test coverage detected