[RFC] Adding Py3k support while maintaining compatibility with python <= 2.6
Benoit Boissinot
bboissin at gmail.com
Wed Jun 2 17:58:42 CDT 2010
On Wed, Jun 2, 2010 at 10:17 PM, Renato Cunha <renatoc at gmail.com> wrote:
> Hi,
>
> There are some octal constants spread on some files in mercurial source, my
> preliminary patches for util.py define a bunch of module constants to operate.
> As an example, code that once was
>
> st_mode &= 0666
>
> has become
>
> st_mode &= MODE_666
>
> with MODE_666 being defined as
>
> MODE_666 = int('666', 8)
>
on this particular point, I think python already defines a bunch of
constants to deal with modes (in the stat module).
regards,
Benoit
More information about the Mercurial-devel
mailing list