[PATCH] ui: prompt() takes sequence of responses in lieu of regexp

Alexander Solovyov piranha at piranha.org.ua
Thu Apr 30 01:44:06 CDT 2009


On Thu, Apr 30, 2009 at 6:38 AM, Steve Borho <steve at borho.org> wrote:
> +                if choices is None or r in [resp for (resp, name) in choices]:

Isn't it easier to do:

if not choices or r in dict(choices):

-- 
Alexander



More information about the Mercurial-devel mailing list