[Yum-devel] [PATCH 2/2] Simplify re_full_search_needed "primary" regex.
Ville Skyttä
ville.skytta at iki.fi
Thu Oct 29 07:33:43 UTC 2009
On Wednesday 28 October 2009, James Antill wrote:
> On Wed, 2009-10-28 at 23:20 +0200, Ville Skyttä wrote:
> > ---
> > yum/misc.py | 4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
>
> ACK both. Did you try: re.compile('([-.*?]|\[.+\]).').search ?
Yep, I tried match vs search for all affected regexps, as well as combining
the ones in re_full_search_needed to one. The approaches taken in the patch
were the fastest in my tests.
More information about the Yum-devel
mailing list