mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	General cleanup, raise normalization in Lib/distutils.
This commit is contained in:
		
							parent
							
								
									a73bfee73d
								
							
						
					
					
						commit
						5b7e9d76f3
					
				
					 47 changed files with 963 additions and 1640 deletions
				
			
		|  | @ -11,8 +11,6 @@ | |||
| # someone should sit down and factor out the common code as | ||||
| # WindowsCCompiler!  --GPW | ||||
| 
 | ||||
| # This module should be kept compatible with Python 2.1. | ||||
| 
 | ||||
| __revision__ = "$Id$" | ||||
| 
 | ||||
| 
 | ||||
|  | @ -116,7 +114,7 @@ def compile(self, sources, | |||
|                 try: | ||||
|                     self.spawn (["brcc32", "-fo", obj, src]) | ||||
|                 except DistutilsExecError as msg: | ||||
|                     raise CompileError, msg | ||||
|                     raise CompileError(msg) | ||||
|                 continue # the 'for' loop | ||||
| 
 | ||||
|             # The next two are both for the real compiler. | ||||
|  | @ -140,7 +138,7 @@ def compile(self, sources, | |||
|                             [input_opt, output_opt] + | ||||
|                             extra_postargs + [src]) | ||||
|             except DistutilsExecError as msg: | ||||
|                 raise CompileError, msg | ||||
|                 raise CompileError(msg) | ||||
| 
 | ||||
|         return objects | ||||
| 
 | ||||
|  | @ -165,7 +163,7 @@ def create_static_lib (self, | |||
|             try: | ||||
|                 self.spawn ([self.lib] + lib_args) | ||||
|             except DistutilsExecError as msg: | ||||
|                 raise LibError, msg | ||||
|                 raise LibError(msg) | ||||
|         else: | ||||
|             log.debug("skipping %s (up-to-date)", output_filename) | ||||
| 
 | ||||
|  | @ -299,7 +297,7 @@ def link (self, | |||
|             try: | ||||
|                 self.spawn ([self.linker] + ld_args) | ||||
|             except DistutilsExecError as msg: | ||||
|                 raise LinkError, msg | ||||
|                 raise LinkError(msg) | ||||
| 
 | ||||
|         else: | ||||
|             log.debug("skipping %s (up-to-date)", output_filename) | ||||
|  | @ -345,9 +343,8 @@ def object_filenames (self, | |||
|             # use normcase to make sure '.rc' is really '.rc' and not '.RC' | ||||
|             (base, ext) = os.path.splitext (os.path.normcase(src_name)) | ||||
|             if ext not in (self.src_extensions + ['.rc','.res']): | ||||
|                 raise UnknownFileError, \ | ||||
|                       "unknown file type '%s' (from '%s')" % \ | ||||
|                       (ext, src_name) | ||||
|                 raise UnknownFileError("unknown file type '%s' (from '%s')" % \ | ||||
|                       (ext, src_name)) | ||||
|             if strip_dir: | ||||
|                 base = os.path.basename (base) | ||||
|             if ext == '.res': | ||||
|  | @ -393,6 +390,6 @@ def preprocess (self, | |||
|                 self.spawn(pp_args) | ||||
|             except DistutilsExecError as msg: | ||||
|                 print(msg) | ||||
|                 raise CompileError, msg | ||||
|                 raise CompileError(msg) | ||||
| 
 | ||||
|     # preprocess() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Collin Winter
						Collin Winter