~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Martin Pool
  • Date: 2005-05-19 06:37:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050519063721-555aeba2dc1f659d
- use builtin set object in python2.4 
  (suggested by Mario Pernici)
- clean up some uses of set() that can simply be lists or dicts
- remove some imports from the bzrlib namespace 

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 
23
23
import sys, os.path, types, re
24
 
from sets import Set
25
24
 
26
25
try:
27
26
    from cElementTree import Element, ElementTree, SubElement
455
454
 
456
455
 
457
456
    def id_set(self):
458
 
        return Set(self._byid)
 
457
        from bzrlib import frozenset
 
458
        return frozenset(self._byid)
459
459
 
460
460
 
461
461
    def to_element(self):