On Wed, Jul 23, 2014 at 10:37 PM, Liu Jian <jian.liu at windriver.com> wrote: > local = fetch.localpath(url) > + local = local.rstrip("/") may be you could just do local = fetch.localpath(url).rstrip("/") in the same line