[PATCH 1 of 1] grp.* and pwd.* from tarfile are needed for this to work
Greg Ward
greg-hg at gerg.ca
Mon Mar 30 08:36:09 CDT 2009
On Sat, Mar 28, 2009 at 7:49 PM, Giorgos Keramidas
<keramida at ceid.upatras.gr> wrote:
> # HG changeset patch
> # User Giorgos Keramidas <keramida at ceid.upatras.gr>
> # Date 1238284130 -7200
> # Branch keramida
> # Node ID 35202f3bdc2e5dfd7ef823e82de594f17e109031
> # Parent 15b59a407f83f0020e671cda4da970564a078a36
> grp.* and pwd.* from tarfile are needed for this to work.
>
> diff --git a/mercurial/posix.py b/mercurial/posix.py
> --- a/mercurial/posix.py
> +++ b/mercurial/posix.py
> @@ -10,6 +10,7 @@
>
> from i18n import _
> import os, sys, osutil, errno, stat, getpass
> +from tarfile import (grp, pwd)
Bzzzzzt!! That's Python 2.5 syntax. I think you meant to say
from tarfile import grp, pwd
But that's still a very strange way to import top-level modules grp
and pwd. Why not just
import pwd
import grp
?
Greg
More information about the Mercurial-devel
mailing list