~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Aaron Bentley
  • Date: 2006-07-13 13:10:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1934.
  • Revision ID: abentley@panoramicfeedback.com-20060713131059-069d83a3abcb1206
Make the DEFAULT_VALUE an object instance

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
class OptionParser(optparse.OptionParser):
181
181
    """OptionParser that raises exceptions instead of exiting"""
182
182
 
183
 
    DEFAULT_VALUE = "DEFAULT"
 
183
    DEFAULT_VALUE = object()
184
184
 
185
185
    def error(self, message):
186
186
        raise BzrCommandError(message)