Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/distutils/errors.py

    r2 r391  
    99symbols whose names start with "Distutils" and end with "Error"."""
    1010
    11 # This module should be kept compatible with Python 2.1.
     11__revision__ = "$Id$"
    1212
    13 __revision__ = "$Id: errors.py 77376 2010-01-08 23:27:23Z tarek.ziade $"
     13class DistutilsError(Exception):
     14    """The root of all Distutils evil."""
    1415
    15 class DistutilsError (Exception):
    16     """The root of all Distutils evil."""
    17     pass
    18 
    19 class DistutilsModuleError (DistutilsError):
     16class DistutilsModuleError(DistutilsError):
    2017    """Unable to load an expected module, or to find an expected class
    2118    within some module (in particular, command modules and classes)."""
    22     pass
    2319
    24 class DistutilsClassError (DistutilsError):
     20class DistutilsClassError(DistutilsError):
    2521    """Some command class (or possibly distribution class, if anyone
    2622    feels a need to subclass Distribution) is found not to be holding
    2723    up its end of the bargain, ie. implementing some part of the
    2824    "command "interface."""
    29     pass
    3025
    31 class DistutilsGetoptError (DistutilsError):
     26class DistutilsGetoptError(DistutilsError):
    3227    """The option table provided to 'fancy_getopt()' is bogus."""
    33     pass
    3428
    35 class DistutilsArgError (DistutilsError):
     29class DistutilsArgError(DistutilsError):
    3630    """Raised by fancy_getopt in response to getopt.error -- ie. an
    3731    error in the command line usage."""
    38     pass
    3932
    40 class DistutilsFileError (DistutilsError):
     33class DistutilsFileError(DistutilsError):
    4134    """Any problems in the filesystem: expected file not found, etc.
    4235    Typically this is for problems that we detect before IOError or
    4336    OSError could be raised."""
    44     pass
    4537
    46 class DistutilsOptionError (DistutilsError):
     38class DistutilsOptionError(DistutilsError):
    4739    """Syntactic/semantic errors in command options, such as use of
    4840    mutually conflicting options, or inconsistent options,
     
    5143    files, or what-have-you -- but if we *know* something originated in
    5244    the setup script, we'll raise DistutilsSetupError instead."""
    53     pass
    5445
    55 class DistutilsSetupError (DistutilsError):
     46class DistutilsSetupError(DistutilsError):
    5647    """For errors that can be definitely blamed on the setup script,
    5748    such as invalid keyword arguments to 'setup()'."""
    58     pass
    5949
    60 class DistutilsPlatformError (DistutilsError):
     50class DistutilsPlatformError(DistutilsError):
    6151    """We don't know how to do something on the current platform (but
    6252    we do know how to do it on some platform) -- eg. trying to compile
    6353    C files on a platform not supported by a CCompiler subclass."""
    64     pass
    6554
    66 class DistutilsExecError (DistutilsError):
     55class DistutilsExecError(DistutilsError):
    6756    """Any problems executing an external program (such as the C
    6857    compiler, when compiling C files)."""
    69     pass
    7058
    71 class DistutilsInternalError (DistutilsError):
     59class DistutilsInternalError(DistutilsError):
    7260    """Internal inconsistencies or impossibilities (obviously, this
    7361    should never be seen if the code is working!)."""
    74     pass
    7562
    76 class DistutilsTemplateError (DistutilsError):
     63class DistutilsTemplateError(DistutilsError):
    7764    """Syntax error in a file list template."""
    7865
     
    8168
    8269# Exception classes used by the CCompiler implementation classes
    83 class CCompilerError (Exception):
     70class CCompilerError(Exception):
    8471    """Some compile/link operation failed."""
    8572
    86 class PreprocessError (CCompilerError):
     73class PreprocessError(CCompilerError):
    8774    """Failure to preprocess one or more C/C++ files."""
    8875
    89 class CompileError (CCompilerError):
     76class CompileError(CCompilerError):
    9077    """Failure to compile one or more C/C++ source files."""
    9178
    92 class LibError (CCompilerError):
     79class LibError(CCompilerError):
    9380    """Failure to create a static library from one or more C/C++ object
    9481    files."""
    9582
    96 class LinkError (CCompilerError):
     83class LinkError(CCompilerError):
    9784    """Failure to link one or more C/C++ object files into an executable
    9885    or shared library file."""
    9986
    100 class UnknownFileError (CCompilerError):
     87class UnknownFileError(CCompilerError):
    10188    """Attempt to process an unknown file type."""
Note: See TracChangeset for help on using the changeset viewer.