ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/UnserializePHP.py
(Generate patch)

Comparing COMP/CRAB/python/UnserializePHP.py (file contents):
Revision 1.1 by slacapra, Mon Jul 25 14:31:24 2005 UTC vs.
Revision 1.2 by slacapra, Wed Jan 17 18:17:59 2007 UTC

# Line 1 | Line 1
1 < import types, string
1 > import string
2  
3   """
4   Unserialize class for the PHP RefDB serialization format.
# Line 51 | Line 51 | class PHPUnserialize(object):
51                  offset = raw offset from start of data
52                  """
53                  
54                buf = []
54                  dtype = string.lower(data[offset:offset+1])
55  
56                  #print "# dtype =", dtype
# Line 59 | Line 58 | class PHPUnserialize(object):
58                  # 't:' = 2 chars
59                  dataoffset = offset + 2
60                  typeconvert = lambda x : x
61 <                chars = datalength = 0
61 >                chars = 0
62  
63                  # int => Integer
64                  if dtype == 'i':

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines