[BUG] 0.15rc2: DeprecationWarning: struct integer overflow masking is deprecated

Martin Pool mbp at sourcefrog.net
Sun Apr 1 02:39:02 BST 2007


On 3/28/07, John Arbash Meinel <john at arbash-meinel.com> wrote:
> Can you confirm if the warning goes away with this change:
> === modified file 'bzrlib/dirstate.py'
> --- bzrlib/dirstate.py  2007-03-26 12:26:11 +0000
> +++ bzrlib/dirstate.py  2007-03-27 19:58:29 +0000
> @@ -2369,6 +2369,6 @@
>      # well within the noise margin
>
>      # base64.encode always adds a final newline, so strip it off
> -    return _encode(_pack('>llllll'
> +    return _encode(_pack('>LLLLLL'
>          , st.st_size, int(st.st_mtime), int(st.st_ctime)
> -        , st.st_dev, st.st_ino, st.st_mode))[:-1]
> +        , st.st_dev, st.st_ino & 0xFFFFFFFF, st.st_mode))[:-1]

OK, I've merged that to 0.15.

-- 
Martin



More information about the bazaar mailing list