[ovs-dev] [PATCH] ovs-bugtool: Add ability to prioritize files by date.
Raju Subramanian
rsubramanian at nicira.com
Fri Mar 23 21:24:21 UTC 2012
>
>
> I think that fcmp(x,y) can just "return cmp(x[1].st_mtime, y[1].st_mtime)".
>
Removed. Implemented what Reid suggested.
> I think that the try...except around the arithmetic in file_output is
> no longer necessary.
removed.
> However, I don't think that this is safe:
> > + path_entries = [(path, os.stat(path)) for path in path_list if
> os.path.exists(path)]
> At least, there is a race between the "exists" test and the "stat"
> call.
>
> Split into separate calls.
>
Thanks,
>
> Ben.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20120323/797a28af/attachment-0003.html>
More information about the dev
mailing list