~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-08 07:05:00 UTC
  • mfrom: (3376.2.15 no-asserts)
  • Revision ID: pqm@pqm.ubuntu.com-20080508070500-9zyyvsk0eev20t4w
(mbp) remove and disallow assert statements

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
        self.type = type
180
180
        self._short_name = short_name
181
181
        if type is None:
182
 
            assert argname is None
 
182
            if argname:
 
183
                raise ValueError('argname not valid for booleans')
183
184
        elif argname is None:
184
185
            argname = 'ARG'
185
186
        self.argname = argname