/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/xml8.py

  • Committer: John Arbash Meinel
  • Date: 2008-12-10 23:05:21 UTC
  • mto: This revision was merged to the branch mainline in revision 3912.
  • Revision ID: john@arbash-meinel.com-20081210230521-t1t4d6yfh8kt6ft8
We don't need to inline get_cached until we've had the miss.

Show diffs side-by-side

added added

removed removed

Lines of Context:
385
385
        return inv
386
386
 
387
387
    def _unpack_entry(self, elt):
388
 
        get_cached = _get_utf8_or_ascii
389
388
        elt_get = elt.get
390
 
 
391
389
        file_id = elt_get('file_id')
392
390
        revision = elt_get('revision')
393
391
        # Check and see if we have already unpacked this exact entry
438
436
        if not InventoryEntry.versionable_kind(kind):
439
437
            raise AssertionError('unsupported entry kind %s' % kind)
440
438
 
 
439
        get_cached = _get_utf8_or_ascii
 
440
 
441
441
        file_id = get_cached(file_id)
442
442
        if revision is not None:
443
443
            revision = get_cached(revision)