[BUG] 0.15rc2: DeprecationWarning: struct integer overflow masking is deprecated
John Arbash Meinel
john at arbash-meinel.com
Mon Mar 26 15:09:30 BST 2007
Jari Aalto wrote:
> John Arbash Meinel <john at arbash-meinel.com> writes:
>
>> Jari Aalto wrote:
>>
>>> FYI, Cygwin's 0.15rc2 reports following message:
>>>
>>> $ bzr ci -m "..."
>>> /usr/lib/python2.5/site-packages/bzrlib/dirstate.py:2302: DeprecationWarning: struct integer overflow masking is deprecated
>>> , st.st_dev, st.st_ino, st.st_mode))[:-1]
>> struct.pack('>LLLLLL') instead of struct.pack('>llllll')
>>
>> Can you try using 'LLLLLL' and see if it avoids the warning for you?
>
> I'm sorry to report that changign to use 'L' did not help. Do you have
> other suggestions to try?
>
> Jari
To help debug, can you try to do:
python -Werror /usr/bin/bzr ci -m "..."
And the change the lines around "struct.pack()" to catch the exception
with something like:
try:
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]
except Exception, e:
print e
print 'size: %s %s' % (type(st.st_size), st.st_size)
print 'mtime: %s %s' % (type(st.st_mtime), st.st_mtime)
...
# The same for all parameters, so we can figure out what it is
# complaining about
Thanks,
John
=:->
More information about the bazaar
mailing list