~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Eric Siegerman
  • Date: 2011-02-08 23:06:34 UTC
  • mto: This revision was merged to the branch mainline in revision 5656.
  • Revision ID: pub08@davor.org-20110208230634-u7ek4qdxikw0wu4w
Fix traceback attempting to "bzr dump-btree --raw btree-with-0-rows".

Show diffs side-by-side

added added

removed removed

Lines of Context:
413
413
                self.outf.write(page_bytes[:header_end])
414
414
                page_bytes = data
415
415
            self.outf.write('\nPage %d\n' % (page_idx,))
416
 
            decomp_bytes = zlib.decompress(page_bytes)
417
 
            self.outf.write(decomp_bytes)
418
 
            self.outf.write('\n')
 
416
            if len(page_bytes) == 0:
 
417
                self.outf.write('(empty)\n');
 
418
            else:
 
419
                decomp_bytes = zlib.decompress(page_bytes)
 
420
                self.outf.write(decomp_bytes)
 
421
                self.outf.write('\n')
419
422
 
420
423
    def _dump_entries(self, trans, basename):
421
424
        try: