mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix typos in warnings, docstrings, comments and text files (#123597)
This commit is contained in:
		
							parent
							
								
									33b790978d
								
							
						
					
					
						commit
						1f4a49ea53
					
				
					 8 changed files with 8 additions and 8 deletions
				
			
		|  | @ -268,7 +268,7 @@ def pattern(self, format): | ||||||
|         if day_of_month_in_format and not year_in_format: |         if day_of_month_in_format and not year_in_format: | ||||||
|             import warnings |             import warnings | ||||||
|             warnings.warn("""\ |             warnings.warn("""\ | ||||||
| Parsing dates involving a day of month without a year specified is ambiguious | Parsing dates involving a day of month without a year specified is ambiguous | ||||||
| and fails to parse leap day. The default behavior will change in Python 3.15 | and fails to parse leap day. The default behavior will change in Python 3.15 | ||||||
| to either always raise an exception or to use a different default year (TBD). | to either always raise an exception or to use a different default year (TBD). | ||||||
| To avoid trouble, add a specific year to the input & format. | To avoid trouble, add a specific year to the input & format. | ||||||
|  |  | ||||||
|  | @ -33,7 +33,7 @@ | ||||||
|  - hexdigest():  Like digest() except the digest is returned as a string |  - hexdigest():  Like digest() except the digest is returned as a string | ||||||
|                  of double length, containing only hexadecimal digits. |                  of double length, containing only hexadecimal digits. | ||||||
|  - copy():       Return a copy (clone) of the hash object. This can be used to |  - copy():       Return a copy (clone) of the hash object. This can be used to | ||||||
|                  efficiently compute the digests of datas that share a common |                  efficiently compute the digests of data that share a common | ||||||
|                  initial substring. |                  initial substring. | ||||||
| 
 | 
 | ||||||
| For example, to obtain the digest of the byte string 'Nobody inspects the | For example, to obtain the digest of the byte string 'Nobody inspects the | ||||||
|  |  | ||||||
|  | @ -37,7 +37,7 @@ As of 2022, this was known true for 1 'major' Linux distribution. | ||||||
| (Same would be true for any non-Aqua macOS with 8.5, but now none?) | (Same would be true for any non-Aqua macOS with 8.5, but now none?) | ||||||
| Can be deleted when we require 8.6 or it is known always used. | Can be deleted when we require 8.6 or it is known always used. | ||||||
| 
 | 
 | ||||||
| Future: Derivitives of Python logo should be submitted for approval. | Future: Derivatives of Python logo should be submitted for approval. | ||||||
| PSF Trademark Working Group / Committee psf-trademarks@python.org | PSF Trademark Working Group / Committee psf-trademarks@python.org | ||||||
| https://www.python.org/community/logos/  # Original files | https://www.python.org/community/logos/  # Original files | ||||||
| https://www.python.org/psf/trademarks-faq/ | https://www.python.org/psf/trademarks-faq/ | ||||||
|  |  | ||||||
|  | @ -600,7 +600,7 @@ def GetCoreKeys(self, keySetName=None): | ||||||
|         """ |         """ | ||||||
|         # TODO: = dict(sorted([(v-event, keys), ...]))? |         # TODO: = dict(sorted([(v-event, keys), ...]))? | ||||||
|         keyBindings={ |         keyBindings={ | ||||||
|             # vitual-event: list of key events. |             # virtual-event: list of key events. | ||||||
|             '<<copy>>': ['<Control-c>', '<Control-C>'], |             '<<copy>>': ['<Control-c>', '<Control-C>'], | ||||||
|             '<<cut>>': ['<Control-x>', '<Control-X>'], |             '<<cut>>': ['<Control-x>', '<Control-X>'], | ||||||
|             '<<paste>>': ['<Control-v>', '<Control-V>'], |             '<<paste>>': ['<Control-v>', '<Control-V>'], | ||||||
|  |  | ||||||
|  | @ -914,7 +914,7 @@ def RemoveKeybindings(self): | ||||||
|     def ApplyKeybindings(self): |     def ApplyKeybindings(self): | ||||||
|         """Apply the virtual, configurable keybindings. |         """Apply the virtual, configurable keybindings. | ||||||
| 
 | 
 | ||||||
|         Alse update hotkeys to current keyset. |         Also update hotkeys to current keyset. | ||||||
|         """ |         """ | ||||||
|         # Called from configdialog.activate_config_changes. |         # Called from configdialog.activate_config_changes. | ||||||
|         self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet() |         self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet() | ||||||
|  |  | ||||||
|  | @ -52,7 +52,7 @@ should probably be refined in the future.) | ||||||
| 
 | 
 | ||||||
| Extensions are not required to define menu entries for all the events they | Extensions are not required to define menu entries for all the events they | ||||||
| implement.  (They are also not required to create keybindings, but in that | implement.  (They are also not required to create keybindings, but in that | ||||||
| case there must be empty bindings in cofig-extensions.def) | case there must be empty bindings in config-extensions.def) | ||||||
| 
 | 
 | ||||||
| Here is a partial example from zzdummy.py: | Here is a partial example from zzdummy.py: | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -182,7 +182,7 @@ def _(path): | ||||||
| @contextlib.contextmanager | @contextlib.contextmanager | ||||||
| def _temp_path(dir: tempfile.TemporaryDirectory): | def _temp_path(dir: tempfile.TemporaryDirectory): | ||||||
|     """ |     """ | ||||||
|     Wrap tempfile.TemporyDirectory to return a pathlib object. |     Wrap tempfile.TemporaryDirectory to return a pathlib object. | ||||||
|     """ |     """ | ||||||
|     with dir as result: |     with dir as result: | ||||||
|         yield pathlib.Path(result) |         yield pathlib.Path(result) | ||||||
|  |  | ||||||
|  | @ -523,7 +523,7 @@ def _read_directory(archive): | ||||||
| 
 | 
 | ||||||
|                             # N.b. Here be dragons: the ordering of these is different than |                             # N.b. Here be dragons: the ordering of these is different than | ||||||
|                             # the header fields, and it's really easy to get it wrong since |                             # the header fields, and it's really easy to get it wrong since | ||||||
|                             # naturally-occuring zips that use all 3 are >4GB |                             # naturally-occurring zips that use all 3 are >4GB | ||||||
|                             if file_size == MAX_UINT32: |                             if file_size == MAX_UINT32: | ||||||
|                                 file_size = values.pop(0) |                                 file_size = values.pop(0) | ||||||
|                             if data_size == MAX_UINT32: |                             if data_size == MAX_UINT32: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 abstractee
						abstractee