(s)
| 2267 | |
| 2268 | |
| 2269 | def is_valid_dos_filename(s): |
| 2270 | if s is None or not isinstance(s, (str, bytes, bytearray)): |
| 2271 | return False |
| 2272 | # Allow path separators as import names can contain directories. |
| 2273 | allowed = allowed_filename + b"\\/" |
| 2274 | return all(c in allowed for c in set(s)) |
| 2275 | |
| 2276 | |
| 2277 | # Check if an imported name uses the valid accepted characters expected in |
no outgoing calls
no test coverage detected