~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Martin Pool
  • Date: 2008-06-04 07:43:37 UTC
  • mto: This revision was merged to the branch mainline in revision 3475.
  • Revision ID: mbp@sourcefrog.net-20080604074337-th4z2id6fej914zs
Correct comment and remove overbroad except block

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
class KnitContent(object):
283
283
    """Content of a knit version to which deltas can be applied.
284
284
    
285
 
    This is for historical reasons always stored in memory as a list of lines
286
 
    with \n at the end, plus a flag saying if the final ending is really there
287
 
    or not.
 
285
    This is always stored in memory as a list of lines with \n at the end,
 
286
    plus a flag saying if the final ending is really there or not, because that 
 
287
    corresponds to the on-disk knit representation.
288
288
    """
289
289
 
290
290
    def __init__(self):
2270
2270
        self._create_parent_dir = _create_parent_dir
2271
2271
 
2272
2272
    def __repr__(self):
2273
 
        try:
2274
 
            return "%s(%r)" % (self.__class__.__name__,
2275
 
                self._transport.abspath(self._filename))
2276
 
        except:
2277
 
            return "_KnitAccess(**unprintable**)"
 
2273
        return "%s(%r)" % (self.__class__.__name__,
 
2274
            self._transport.abspath(self._filename))
2278
2275
 
2279
2276
    def add_raw_records(self, sizes, raw_data):
2280
2277
        """Add raw knit bytes to a storage area.