Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a8ad4a

Browse files
author
Tarek Ziadé
committed
Merged revisions 75901 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r75901 | tarek.ziade | 2009-10-28 07:45:18 +0100 (Wed, 28 Oct 2009) | 1 line removed spurious spaces ........
1 parent c7c71ff commit 7a8ad4a

1 file changed

Lines changed: 18 additions & 29 deletions

File tree

Lib/distutils/errors.py

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,90 +10,79 @@
1010

1111
__revision__ = "$Id$"
1212

13-
class DistutilsError (Exception):
13+
class DistutilsError(Exception):
1414
"""The root of all Distutils evil."""
15-
pass
1615

17-
class DistutilsModuleError (DistutilsError):
16+
class DistutilsModuleError(DistutilsError):
1817
"""Unable to load an expected module, or to find an expected class
1918
within some module (in particular, command modules and classes)."""
20-
pass
2119

22-
class DistutilsClassError (DistutilsError):
20+
class DistutilsClassError(DistutilsError):
2321
"""Some command class (or possibly distribution class, if anyone
2422
feels a need to subclass Distribution) is found not to be holding
2523
up its end of the bargain, ie. implementing some part of the
2624
"command "interface."""
27-
pass
2825

29-
class DistutilsGetoptError (DistutilsError):
26+
class DistutilsGetoptError(DistutilsError):
3027
"""The option table provided to 'fancy_getopt()' is bogus."""
31-
pass
3228

33-
class DistutilsArgError (DistutilsError):
29+
class DistutilsArgError(DistutilsError):
3430
"""Raised by fancy_getopt in response to getopt.error -- ie. an
3531
error in the command line usage."""
36-
pass
3732

38-
class DistutilsFileError (DistutilsError):
33+
class DistutilsFileError(DistutilsError):
3934
"""Any problems in the filesystem: expected file not found, etc.
4035
Typically this is for problems that we detect before IOError or
4136
OSError could be raised."""
42-
pass
4337

44-
class DistutilsOptionError (DistutilsError):
38+
class DistutilsOptionError(DistutilsError):
4539
"""Syntactic/semantic errors in command options, such as use of
4640
mutually conflicting options, or inconsistent options,
4741
badly-spelled values, etc. No distinction is made between option
4842
values originating in the setup script, the command line, config
4943
files, or what-have-you -- but if we *know* something originated in
5044
the setup script, we'll raise DistutilsSetupError instead."""
51-
pass
5245

53-
class DistutilsSetupError (DistutilsError):
46+
class DistutilsSetupError(DistutilsError):
5447
"""For errors that can be definitely blamed on the setup script,
5548
such as invalid keyword arguments to 'setup()'."""
56-
pass
5749

58-
class DistutilsPlatformError (DistutilsError):
50+
class DistutilsPlatformError(DistutilsError):
5951
"""We don't know how to do something on the current platform (but
6052
we do know how to do it on some platform) -- eg. trying to compile
6153
C files on a platform not supported by a CCompiler subclass."""
62-
pass
6354

64-
class DistutilsExecError (DistutilsError):
55+
class DistutilsExecError(DistutilsError):
6556
"""Any problems executing an external program (such as the C
6657
compiler, when compiling C files)."""
67-
pass
6858

69-
class DistutilsInternalError (DistutilsError):
59+
class DistutilsInternalError(DistutilsError):
7060
"""Internal inconsistencies or impossibilities (obviously, this
7161
should never be seen if the code is working!)."""
72-
pass
7362

74-
class DistutilsTemplateError (DistutilsError):
63+
class DistutilsTemplateError(DistutilsError):
7564
"""Syntax error in a file list template."""
7665

7766
class DistutilsByteCompileError(DistutilsError):
7867
"""Byte compile error."""
7968

8069
# Exception classes used by the CCompiler implementation classes
81-
class CCompilerError (Exception):
70+
class CCompilerError(Exception):
8271
"""Some compile/link operation failed."""
8372

84-
class PreprocessError (CCompilerError):
73+
class PreprocessError(CCompilerError):
8574
"""Failure to preprocess one or more C/C++ files."""
8675

87-
class CompileError (CCompilerError):
76+
class CompileError(CCompilerError):
8877
"""Failure to compile one or more C/C++ source files."""
8978

90-
class LibError (CCompilerError):
79+
class LibError(CCompilerError):
9180
"""Failure to create a static library from one or more C/C++ object
9281
files."""
9382

94-
class LinkError (CCompilerError):
83+
class LinkError(CCompilerError):
9584
"""Failure to link one or more C/C++ object files into an executable
9685
or shared library file."""
9786

98-
class UnknownFileError (CCompilerError):
87+
class UnknownFileError(CCompilerError):
9988
"""Attempt to process an unknown file type."""

0 commit comments

Comments
 (0)