(val)
| 126 | |
| 127 | |
| 128 | def safe_range(val): |
| 129 | # As per range, but don't trust the value too much: cap it to a safety |
| 130 | # threshold in case the data was corrupted |
| 131 | return range(safety_limit(int(val))) |
| 132 | |
| 133 | class StringTruncated(RuntimeError): |
| 134 | pass |
no test coverage detected
searching dependent graphs…