Closed GoogleCodeExporter closed 9 years ago
Hi, the problem is the 'L' character at the end, which isn't a valid hex
character.
This is used in Python 2.x to indicate a 'long' integer (so the problem will go
away in Python 3.x).
You can either strip the final 'L' yourself (a bit messy and not recommended)
or search for the hex or integer directly:
>>> s.find('0xc81cc4f8')
or
>>> s.find('uint:32=3357328632')
If you want to only find them on byte boundaries (and I'm guessing as this is a
jpeg that you do) then you also need to say 'bytealigned=True' as a parameter
of find().
Cheers,
Scott
Original comment by dr.scott...@gmail.com
on 14 Mar 2011 at 11:03
Original issue reported on code.google.com by
wang...@un0wn.org
on 14 Mar 2011 at 10:47