~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_btree_serializer_pyx.pyx

  • Committer: Jelmer Vernooij
  • Date: 2011-02-19 15:23:08 UTC
  • mto: (5582.12.2 weave-plugin)
  • mto: This revision was merged to the branch mainline in revision 5718.
  • Revision ID: jelmer@samba.org-20110219152308-5shhc4rj0ez4oa12
move xml4 to weave plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
513
513
        # %llu is what we really want, but unfortunately it was only added
514
514
        # in python 2.7... :(
515
515
        block_offset_str = str(record.block_offset)
516
 
        value = PyString_FromFormat('%s %u %u %u',
 
516
        value = PyString_FromFormat('%s %lu %lu %lu',
517
517
                                PyString_AS_STRING(block_offset_str),
518
518
                                record.block_length,
519
519
                                record.record_start, record.record_end)
520
520
    else:
521
 
        value = PyString_FromFormat('%lu %u %u %u',
 
521
        value = PyString_FromFormat('%lu %lu %lu %lu',
522
522
                                    <unsigned long>record.block_offset,
523
523
                                    record.block_length,
524
524
                                    record.record_start, record.record_end)