|
10 | 10 |
|
11 | 11 | __revision__ = "$Id$" |
12 | 12 |
|
13 | | -class DistutilsError (Exception): |
| 13 | +class DistutilsError(Exception): |
14 | 14 | """The root of all Distutils evil.""" |
15 | | - pass |
16 | 15 |
|
17 | | -class DistutilsModuleError (DistutilsError): |
| 16 | +class DistutilsModuleError(DistutilsError): |
18 | 17 | """Unable to load an expected module, or to find an expected class |
19 | 18 | within some module (in particular, command modules and classes).""" |
20 | | - pass |
21 | 19 |
|
22 | | -class DistutilsClassError (DistutilsError): |
| 20 | +class DistutilsClassError(DistutilsError): |
23 | 21 | """Some command class (or possibly distribution class, if anyone |
24 | 22 | feels a need to subclass Distribution) is found not to be holding |
25 | 23 | up its end of the bargain, ie. implementing some part of the |
26 | 24 | "command "interface.""" |
27 | | - pass |
28 | 25 |
|
29 | | -class DistutilsGetoptError (DistutilsError): |
| 26 | +class DistutilsGetoptError(DistutilsError): |
30 | 27 | """The option table provided to 'fancy_getopt()' is bogus.""" |
31 | | - pass |
32 | 28 |
|
33 | | -class DistutilsArgError (DistutilsError): |
| 29 | +class DistutilsArgError(DistutilsError): |
34 | 30 | """Raised by fancy_getopt in response to getopt.error -- ie. an |
35 | 31 | error in the command line usage.""" |
36 | | - pass |
37 | 32 |
|
38 | | -class DistutilsFileError (DistutilsError): |
| 33 | +class DistutilsFileError(DistutilsError): |
39 | 34 | """Any problems in the filesystem: expected file not found, etc. |
40 | 35 | Typically this is for problems that we detect before IOError or |
41 | 36 | OSError could be raised.""" |
42 | | - pass |
43 | 37 |
|
44 | | -class DistutilsOptionError (DistutilsError): |
| 38 | +class DistutilsOptionError(DistutilsError): |
45 | 39 | """Syntactic/semantic errors in command options, such as use of |
46 | 40 | mutually conflicting options, or inconsistent options, |
47 | 41 | badly-spelled values, etc. No distinction is made between option |
48 | 42 | values originating in the setup script, the command line, config |
49 | 43 | files, or what-have-you -- but if we *know* something originated in |
50 | 44 | the setup script, we'll raise DistutilsSetupError instead.""" |
51 | | - pass |
52 | 45 |
|
53 | | -class DistutilsSetupError (DistutilsError): |
| 46 | +class DistutilsSetupError(DistutilsError): |
54 | 47 | """For errors that can be definitely blamed on the setup script, |
55 | 48 | such as invalid keyword arguments to 'setup()'.""" |
56 | | - pass |
57 | 49 |
|
58 | | -class DistutilsPlatformError (DistutilsError): |
| 50 | +class DistutilsPlatformError(DistutilsError): |
59 | 51 | """We don't know how to do something on the current platform (but |
60 | 52 | we do know how to do it on some platform) -- eg. trying to compile |
61 | 53 | C files on a platform not supported by a CCompiler subclass.""" |
62 | | - pass |
63 | 54 |
|
64 | | -class DistutilsExecError (DistutilsError): |
| 55 | +class DistutilsExecError(DistutilsError): |
65 | 56 | """Any problems executing an external program (such as the C |
66 | 57 | compiler, when compiling C files).""" |
67 | | - pass |
68 | 58 |
|
69 | | -class DistutilsInternalError (DistutilsError): |
| 59 | +class DistutilsInternalError(DistutilsError): |
70 | 60 | """Internal inconsistencies or impossibilities (obviously, this |
71 | 61 | should never be seen if the code is working!).""" |
72 | | - pass |
73 | 62 |
|
74 | | -class DistutilsTemplateError (DistutilsError): |
| 63 | +class DistutilsTemplateError(DistutilsError): |
75 | 64 | """Syntax error in a file list template.""" |
76 | 65 |
|
77 | 66 | class DistutilsByteCompileError(DistutilsError): |
78 | 67 | """Byte compile error.""" |
79 | 68 |
|
80 | 69 | # Exception classes used by the CCompiler implementation classes |
81 | | -class CCompilerError (Exception): |
| 70 | +class CCompilerError(Exception): |
82 | 71 | """Some compile/link operation failed.""" |
83 | 72 |
|
84 | | -class PreprocessError (CCompilerError): |
| 73 | +class PreprocessError(CCompilerError): |
85 | 74 | """Failure to preprocess one or more C/C++ files.""" |
86 | 75 |
|
87 | | -class CompileError (CCompilerError): |
| 76 | +class CompileError(CCompilerError): |
88 | 77 | """Failure to compile one or more C/C++ source files.""" |
89 | 78 |
|
90 | | -class LibError (CCompilerError): |
| 79 | +class LibError(CCompilerError): |
91 | 80 | """Failure to create a static library from one or more C/C++ object |
92 | 81 | files.""" |
93 | 82 |
|
94 | | -class LinkError (CCompilerError): |
| 83 | +class LinkError(CCompilerError): |
95 | 84 | """Failure to link one or more C/C++ object files into an executable |
96 | 85 | or shared library file.""" |
97 | 86 |
|
98 | | -class UnknownFileError (CCompilerError): |
| 87 | +class UnknownFileError(CCompilerError): |
99 | 88 | """Attempt to process an unknown file type.""" |
0 commit comments