[PATCH STABLE] obsolete: import base85 without using a from clause, fixing --pure

Pierre-Yves David pierre-yves.david at logilab.fr
Fri Aug 24 08:12:52 UTC 2012


On Thu, Aug 23, 2012 at 06:49:32PM -0500, Steve Borho wrote:
> # HG changeset patch
> # User Steve Borho <steve at borho.org>
> # Date 1345765752 18000
> # Branch stable
> # Node ID 535271fb37252995525932650e936bf6e8b43dd8
> # Parent  7228def3dcc114f2c9f8c7b7733170adcb3a5630
> obsolete: import base85 without using a from clause, fixing --pure
> 
> diff -r 7228def3dcc1 -r 535271fb3725 mercurial/obsolete.py
> --- a/mercurial/obsolete.py	Tue Aug 21 12:26:53 2012 -0500
> +++ b/mercurial/obsolete.py	Thu Aug 23 18:49:12 2012 -0500
> @@ -52,7 +52,8 @@
>    cannot contain '\0'.
>  """
>  import struct
> -from mercurial import util, base85
> +from mercurial import util
> +import base85
>  from i18n import _

It's clear to me *why* this fix the issue. Could you elaborate of this
difference between pure and non-pure ?

-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20120824/5f295982/attachment.asc>


More information about the Mercurial-devel mailing list