summaryrefslogtreecommitdiff
path: root/Lib/idlelib/editor.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2019-01-18 02:09:53 -0500
committerGitHub <noreply@github.com>2019-01-18 02:09:53 -0500
commita902239f22c322d8988c514dd1c724aade3e4ef3 (patch)
treed196d00791288eb1e774f48f8beb58c05488ae0f /Lib/idlelib/editor.py
parent3bcbedc9f1471d957a30a90f9d1251516b422416 (diff)
downloadcpython-git-a902239f22c322d8988c514dd1c724aade3e4ef3.tar.gz
bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)
'Untitled' violates the PEP 8 standard for .py files
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r--Lib/idlelib/editor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py
index d13ac3786d..e05b52a96d 100644
--- a/Lib/idlelib/editor.py
+++ b/Lib/idlelib/editor.py
@@ -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)