]> granicus.if.org Git - python/commit
Cleaned up/simplified error-handling:
authorGreg Ward <gward@python.net>
Sat, 15 Apr 2000 22:15:07 +0000 (22:15 +0000)
committerGreg Ward <gward@python.net>
Sat, 15 Apr 2000 22:15:07 +0000 (22:15 +0000)
commit02a1a2b077e969e5fef8504cece5852bf641552d
tree4adea05076d4dab820180e6c9290ae9b1d7b28a4
parent4a3dd2dcc2fae12b6736822731848c557b80d0e3
Cleaned up/simplified error-handling:
  - DistutilsOptionError is now documented as it's actually used, ie.
    to indicate bogus option values (usually user options, eg. from
    the command-line)
  - added DistutilsSetupError to indicate errors that definitely arise
    in the setup script
  - got rid of DistutilsValueError, and changed all usage of it to
    either DistutilsSetupError or ValueError as appropriate
  - simplified a bunch of option get/set methods in Command and
    Distribution classes -- just pass on AttributeError most of
    the time, rather than turning it into something else
Lib/distutils/cmd.py
Lib/distutils/command/build_clib.py
Lib/distutils/command/build_ext.py
Lib/distutils/dist.py
Lib/distutils/errors.py
Lib/distutils/msvccompiler.py
Lib/distutils/util.py