Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -36,6 +36,7 @@ def del_tmp_sink_path(path): · 35 unmodified lines | |||
| 36 | os.unlink(path) | 36 | os.unlink(path) |
| 37 | except WindowsError as e: | 37 | except WindowsError as e: |
| 38 | # removing the temporary directory sometimes fails on windows | 38 | # removing the temporary directory sometimes fails on windows |
| 39 | import warnings | ||
| 39 | errmsg = "failed deleting temporary file {:s} ({:s})" | 40 | errmsg = "failed deleting temporary file {:s} ({:s})" |
| 40 | warnings.warn(UserWarning(errmsg.format(path, repr(e)))) | 41 | warnings.warn(UserWarning(errmsg.format(path, repr(e)))) |
| 41 | 42 | ||