Use find() instead of looping over the string in expanduser().
From SF patch #757058.
2 files changed