Re: [yocto] [yocto-autobuilder][PATCH] ScrapeTargets: use translate instead of regex

2017-07-17 Thread Joshua Lock
On Sat, 2017-07-15 at 12:33 -0700, Stephano Cetola wrote: > From some quick tests the string translate function is comparable in > efficiency and certainly more legible than regex. We should note that > if we ever move this functionality to an environment running python3, > the translate function t

[yocto] [yocto-autobuilder][PATCH] ScrapeTargets: use translate instead of regex

2017-07-15 Thread Stephano Cetola
>From some quick tests the string translate function is comparable in efficiency and certainly more legible than regex. We should note that if we ever move this functionality to an environment running python3, the translate function takes one dictionary argument, but functions in much the same way.