[PATCH] zeroconf: use util.Abort() instead of deprecated string exceptions

Alexander Solovyov piranha at piranha.org.ua
Fri Jun 11 06:36:16 CDT 2010


On Fri, Jun 11, 2010 at 14:22, Javi Merino <cibervicho at gmail.com> wrote:
> -                                       raise "Bad domain name (circular) at " + str(off)
> +                                       raise util.Abort(_("Bad domain name (circular) at " + str(off)))

I think that it would be better to use ("Bad domain name (circular) at
%s" % off) here.

-- 
Alexander


More information about the Mercurial-devel mailing list