mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fixed a grab-bag of typos spotted by Rob Hooft.
This commit is contained in:
		
							parent
							
								
									aa5372caa7
								
							
						
					
					
						commit
						612eb9f58f
					
				
					 9 changed files with 11 additions and 11 deletions
				
			
		|  | @ -304,7 +304,7 @@ def set_runtime_library_dirs (self, dirs): | ||||||
| 
 | 
 | ||||||
|     def add_link_object (self, object): |     def add_link_object (self, object): | ||||||
|         """Add 'object' to the list of object files (or analogues, such as |         """Add 'object' to the list of object files (or analogues, such as | ||||||
|         explictly named library files or the output of "resource |         explicitly named library files or the output of "resource | ||||||
|         compilers") to be included in every link driven by this compiler |         compilers") to be included in every link driven by this compiler | ||||||
|         object. |         object. | ||||||
|         """ |         """ | ||||||
|  |  | ||||||
|  | @ -55,7 +55,7 @@ def __init__ (self, dist): | ||||||
|         # commands fallback on the Distribution's behaviour.  None means |         # commands fallback on the Distribution's behaviour.  None means | ||||||
|         # "not defined, check self.distribution's copy", while 0 or 1 mean |         # "not defined, check self.distribution's copy", while 0 or 1 mean | ||||||
|         # false and true (duh).  Note that this means figuring out the real |         # false and true (duh).  Note that this means figuring out the real | ||||||
|         # value of each flag is a touch complicatd -- hence "self.verbose" |         # value of each flag is a touch complicated -- hence "self.verbose" | ||||||
|         # (etc.) will be handled by __getattr__, below. |         # (etc.) will be handled by __getattr__, below. | ||||||
|         self._verbose = None |         self._verbose = None | ||||||
|         self._dry_run = None |         self._dry_run = None | ||||||
|  |  | ||||||
|  | @ -400,7 +400,7 @@ def _make_spec_file(self): | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|         for (rpm_opt, attr, default) in script_options: |         for (rpm_opt, attr, default) in script_options: | ||||||
|             # Insert contents of file refered to, if no file is refered to |             # Insert contents of file referred to, if no file is refered to | ||||||
|             # use 'default' as contents of script |             # use 'default' as contents of script | ||||||
|             val = getattr(self, attr) |             val = getattr(self, attr) | ||||||
|             if val or default: |             if val or default: | ||||||
|  |  | ||||||
|  | @ -394,7 +394,7 @@ def build_extensions (self): | ||||||
|             #     elegant, but people seem to expect it and I |             #     elegant, but people seem to expect it and I | ||||||
|             #     guess it's useful) |             #     guess it's useful) | ||||||
|             # The environment variable should take precedence, and |             # The environment variable should take precedence, and | ||||||
|             # any sensible compiler will give precendence to later |             # any sensible compiler will give precedence to later | ||||||
|             # command line args.  Hence we combine them in order: |             # command line args.  Hence we combine them in order: | ||||||
|             extra_args = ext.extra_compile_args or [] |             extra_args = ext.extra_compile_args or [] | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -46,7 +46,7 @@ def copy_scripts (self): | ||||||
|         """Copy each script listed in 'self.scripts'; if it's marked as a |         """Copy each script listed in 'self.scripts'; if it's marked as a | ||||||
|         Python script in the Unix way (first line matches 'first_line_re', |         Python script in the Unix way (first line matches 'first_line_re', | ||||||
|         ie. starts with "\#!" and contains "python"), then adjust the first |         ie. starts with "\#!" and contains "python"), then adjust the first | ||||||
|         line to refer to the current Python intepreter as we copy. |         line to refer to the current Python interpreter as we copy. | ||||||
|         """ |         """ | ||||||
|         outfiles = [] |         outfiles = [] | ||||||
|         self.mkpath(self.build_dir) |         self.mkpath(self.build_dir) | ||||||
|  |  | ||||||
|  | @ -18,7 +18,7 @@ class install_data (Command): | ||||||
| 
 | 
 | ||||||
|     user_options = [ |     user_options = [ | ||||||
|         ('install-dir=', 'd', |         ('install-dir=', 'd', | ||||||
|          "base directory for installating data files " |          "base directory for installing data files " | ||||||
|          "(default: installation base dir)"), |          "(default: installation base dir)"), | ||||||
|         ('root=', None, |         ('root=', None, | ||||||
|          "install everything relative to this alternate root directory"), |          "install everything relative to this alternate root directory"), | ||||||
|  |  | ||||||
|  | @ -145,7 +145,7 @@ def link_shared_object (self, | ||||||
|                         ] |                         ] | ||||||
|          |          | ||||||
|         # who wants symbols and a many times larger output file |         # who wants symbols and a many times larger output file | ||||||
|         # should explicitely switch the debug mode on  |         # should explicitly switch the debug mode on  | ||||||
|         # otherwise we let dllwrap strip the output file |         # otherwise we let dllwrap strip the output file | ||||||
|         # (On my machine unstripped_file = stripped_file + 254KB |         # (On my machine unstripped_file = stripped_file + 254KB | ||||||
|         #   10KB < stripped_file < ??100KB )  |         #   10KB < stripped_file < ??100KB )  | ||||||
|  |  | ||||||
|  | @ -167,7 +167,7 @@ def __init__ (self, attrs=None): | ||||||
|         # It's only safe to query 'have_run' for a command class that has |         # It's only safe to query 'have_run' for a command class that has | ||||||
|         # been instantiated -- a false value will be inserted when the |         # been instantiated -- a false value will be inserted when the | ||||||
|         # command object is created, and replaced with a true value when |         # command object is created, and replaced with a true value when | ||||||
|         # the command is succesfully run.  Thus it's probably best to use |         # the command is successfully run.  Thus it's probably best to use | ||||||
|         # '.get()' rather than a straight lookup. |         # '.get()' rather than a straight lookup. | ||||||
|         self.have_run = {} |         self.have_run = {} | ||||||
| 
 | 
 | ||||||
|  | @ -677,7 +677,7 @@ def get_command_class (self, command): | ||||||
| 
 | 
 | ||||||
|     def get_command_obj (self, command, create=1): |     def get_command_obj (self, command, create=1): | ||||||
|         """Return the command object for 'command'.  Normally this object |         """Return the command object for 'command'.  Normally this object | ||||||
|         is cached on a previous call to 'get_command_obj()'; if no comand |         is cached on a previous call to 'get_command_obj()'; if no command | ||||||
|         object for 'command' is in the cache, then we either create and |         object for 'command' is in the cache, then we either create and | ||||||
|         return it (if 'create' is true) or return None. |         return it (if 'create' is true) or return None. | ||||||
|         """ |         """ | ||||||
|  |  | ||||||
|  | @ -105,7 +105,7 @@ def check_environ (): | ||||||
|        guarantee that users can use in config files, command-line |        guarantee that users can use in config files, command-line | ||||||
|        options, etc.  Currently this includes: |        options, etc.  Currently this includes: | ||||||
|          HOME - user's home directory (Unix only) |          HOME - user's home directory (Unix only) | ||||||
|          PLAT - desription of the current platform, including hardware |          PLAT - description of the current platform, including hardware | ||||||
|                 and OS (see 'get_platform()') |                 and OS (see 'get_platform()') | ||||||
|     """ |     """ | ||||||
| 
 | 
 | ||||||
|  | @ -125,7 +125,7 @@ def check_environ (): | ||||||
| 
 | 
 | ||||||
| def subst_vars (str, local_vars): | def subst_vars (str, local_vars): | ||||||
|     """Perform shell/Perl-style variable substitution on 'string'. |     """Perform shell/Perl-style variable substitution on 'string'. | ||||||
|        Every occurence of '$' followed by a name, or a name enclosed in |        Every occurrence of '$' followed by a name, or a name enclosed in | ||||||
|        braces, is considered a variable.  Every variable is substituted by |        braces, is considered a variable.  Every variable is substituted by | ||||||
|        the value found in the 'local_vars' dictionary, or in 'os.environ' |        the value found in the 'local_vars' dictionary, or in 'os.environ' | ||||||
|        if it's not in 'local_vars'.  'os.environ' is first checked/ |        if it's not in 'local_vars'.  'os.environ' is first checked/ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Greg Ward
						Greg Ward