/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/graph.py

  • Committer: Aaron Bentley
  • Date: 2008-12-11 16:25:46 UTC
  • mto: This revision was merged to the branch mainline in revision 3894.
  • Revision ID: aaron@aaronbentley.com-20081211162546-a1zte4t2ststz6th
Change custom error to an AssertionError.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    def enable_cache(self, cache_misses=True):
136
136
        """Enable cache."""
137
137
        if self._cache is not None:
138
 
            raise errors.CacheReEnabled()
 
138
            raise AssertionError('Cache enabled when already enabled.')
139
139
        self._cache = {}
140
140
        self._cache_misses = cache_misses
141
141
        if self._debug: