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:
Terry Jan Reedy 2019-01-18 02:09:53 -05:00 committed by GitHub
parent 3bcbedc9f1
commit a902239f22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -943,7 +943,7 @@ class EditorWindow(object):
elif long:
title = long
else:
title = "Untitled"
title = "untitled"
icon = short or long or title
if not self.get_saved():
title = "*%s*" % title
@ -965,7 +965,7 @@ class EditorWindow(object):
if filename:
filename = os.path.basename(filename)
else:
filename = "Untitled"
filename = "untitled"
# return unicode string to display non-ASCII chars correctly
return self._filename_to_unicode(filename)