Replace backslashes with forward slashes if running on Windows. Use case: we always want to use forward slashes, even on Windows.
(path)
| 268 | |
| 269 | |
| 270 | def slashify(path): |
| 271 | """ |
| 272 | Replace backslashes with forward slashes if running on Windows. |
| 273 | |
| 274 | Use case: we always want to use forward slashes, even on Windows. |
| 275 | """ |
| 276 | return path.replace("\\", "/") if is_win32 else path |
| 277 | |
| 278 | |
| 279 | # Bijective mapping to Unicode Private Use Area (like cifs mapchars) |
no test coverage detected