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

Martijn Pieters mj at zopatista.com
Thu Apr 30 01:58:25 CDT 2009


On Thu, Apr 30, 2009 at 08:57, Martijn Pieters <mj at zopatista.com> wrote:
> I'll see you and raise you one:
>
>  if r in set(choices or ()):

aaaaaaand I just lost the game, because choices is a sequence of
tuples. Corrected:

  if r in dict(choices or ()):

-- 
Martijn Pieters



More information about the Mercurial-devel mailing list