diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-24 13:09:11 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-24 13:14:25 +0200 |
| commit | 62c63e03ec968f0a38fb6d05222336c4e738dcd2 (patch) | |
| tree | 63faca2c24ac85977ca22a28f6838b3ba494e268 /tests | |
| parent | 0c3e0363d705be84f8cd06c1b4609927166d8b34 (diff) | |
Handle path cleanups in a cleaner way
_clean_up_path() was only ever passed filenames, so stripping trailing
slashes was redundant. Better to strike at the root of the problem too,
which is the os.path.join() with 'base_dir' defaulting to ".".
The old hack gave incorrect results in obscure cases: Turning .//oops
into /oops is wrong.
The new version should be Windows-friendly as well.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
