~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to weave.py

  • Committer: Martin Pool
  • Date: 2005-06-28 14:56:55 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050628145655-165f168e584cc134
Cope without set/frozenset classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
# TODO: Probably do transitive expansion when specifying parents?
45
45
 
46
46
 
 
47
try:
 
48
    set
 
49
    frozenset
 
50
except NameError:
 
51
    from sets import Set, ImmutableSet
 
52
    set = Set
 
53
    frozenset = ImmutableSet
 
54
    del Set, FrozenSet
 
55
 
 
56
 
47
57
class VerInfo(object):
48
58
    """Information about a version in a Weave."""
49
59
    included = frozenset()