mercurial/revlog.py
changeset 36702 f659a407e5ee
parent 36238 f574cc00831a
child 36721 981f328d6d16
equal deleted inserted replaced
36701:d77c3b023393 36702:f659a407e5ee
  1994 
  1994 
  1995         if t == 'x':
  1995         if t == 'x':
  1996             try:
  1996             try:
  1997                 return _zlibdecompress(data)
  1997                 return _zlibdecompress(data)
  1998             except zlib.error as e:
  1998             except zlib.error as e:
  1999                 raise RevlogError(_('revlog decompress error: %s') % str(e))
  1999                 raise RevlogError(_('revlog decompress error: %s') %
       
  2000                                   util.forcebytestr(e))
  2000         # '\0' is more common than 'u' so it goes first.
  2001         # '\0' is more common than 'u' so it goes first.
  2001         elif t == '\0':
  2002         elif t == '\0':
  2002             return data
  2003             return data
  2003         elif t == 'u':
  2004         elif t == 'u':
  2004             return util.buffer(data, 1)
  2005             return util.buffer(data, 1)