mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)
'Untitled' violates the PEP 8 standard for .py files
This commit is contained in:
		
							parent
							
								
									3bcbedc9f1
								
							
						
					
					
						commit
						a902239f22
					
				
					 3 changed files with 5 additions and 2 deletions
				
			
		|  | @ -3,6 +3,8 @@ Released on 2019-10-20? | ||||||
| ====================================== | ====================================== | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | bpo-35769: Change new file name from 'Untitled' to 'untitled'. | ||||||
|  | 
 | ||||||
| bpo-35660: Fix imports in window module. | bpo-35660: Fix imports in window module. | ||||||
| 
 | 
 | ||||||
| bpo-35641: Properly format calltip for function without docstring. | bpo-35641: Properly format calltip for function without docstring. | ||||||
|  |  | ||||||
|  | @ -943,7 +943,7 @@ def saved_change_hook(self): | ||||||
|         elif long: |         elif long: | ||||||
|             title = long |             title = long | ||||||
|         else: |         else: | ||||||
|             title = "Untitled" |             title = "untitled" | ||||||
|         icon = short or long or title |         icon = short or long or title | ||||||
|         if not self.get_saved(): |         if not self.get_saved(): | ||||||
|             title = "*%s*" % title |             title = "*%s*" % title | ||||||
|  | @ -965,7 +965,7 @@ def short_title(self): | ||||||
|         if filename: |         if filename: | ||||||
|             filename = os.path.basename(filename) |             filename = os.path.basename(filename) | ||||||
|         else: |         else: | ||||||
|             filename = "Untitled" |             filename = "untitled" | ||||||
|         # return unicode string to display non-ASCII chars correctly |         # return unicode string to display non-ASCII chars correctly | ||||||
|         return self._filename_to_unicode(filename) |         return self._filename_to_unicode(filename) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | Change IDLE's new file name from 'Untitled' to 'untitled' | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Terry Jan Reedy
						Terry Jan Reedy