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

Benoit Boissinot bboissin at gmail.com
Fri Jun 11 07:36:04 CDT 2010


On Fri, Jun 11, 2010 at 1:56 PM, Javi Merino <cibervicho at gmail.com> wrote:
> # HG changeset patch
> # User Javi Merino <cibervicho at gmail.com>
> # Date 1276257260 -7200
> # Node ID 6bd17dc43674b81580d5ff2393d875dbe6df9ba4
> # Parent  5bf46516063236efd8a2646643dba9ad3487a109
> zeroconf: use util.Abort() instead of deprecated string exceptions
>
> String exceptions no longer work in python 2.6. This changeset makes
> zeroconf use the util.Abort() exception instead.

Not sure this is a good idea, it probably shouldn't depend on
mercurial libs (it's external code, so it's nice to add new
dependencies).
Is it something wrong if instead we raise Exception(string) ?

Benoit


More information about the Mercurial-devel mailing list