[PATCH] os.remove shouldn't fail, if file doesn't exist
Ismail Pazarbasi
ismail.pazarbasi at gmail.com
Fri Nov 21 13:47:42 PST 2014
Sorry, posted to the wrong list.
On Fri, Nov 21, 2014 at 10:45 PM, Ismail Pazarbasi
<ismail.pazarbasi at gmail.com> wrote:
> Hi emaste,
>
> os.remove might throw an exception (of type OSError), if given file
> doesn't exist. Catch the exception, and ignore it //iff// errno is
> ENOENT. Rethrow the exception, if errno is not ENOENT.
>
> http://reviews.llvm.org/D6362
>
> Files:
> scripts/Python/buildSwigPython.py
More information about the llvm-commits
mailing list