~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Martin Pool
  • Date: 2005-09-15 06:35:58 UTC
  • Revision ID: mbp@sourcefrog.net-20050915063558-f3b5bae25543c922
- add assertion

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
 
216
216
 
217
217
    def lookup(self, name):
 
218
        assert isinstance(name, basestring), type(name)
218
219
        try:
219
220
            return self._name_map[name]
220
221
        except KeyError: