summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2019-01-18 07:09:53 (GMT)
committerGitHub <noreply@github.com>2019-01-18 07:09:53 (GMT)
commita902239f22c322d8988c514dd1c724aade3e4ef3 (patch)
treed196d00791288eb1e774f48f8beb58c05488ae0f
parent3bcbedc9f1471d957a30a90f9d1251516b422416 (diff)
downloadcpython-a902239f22c322d8988c514dd1c724aade3e4ef3.zip
cpython-a902239f22c322d8988c514dd1c724aade3e4ef3.tar.gz
cpython-a902239f22c322d8988c514dd1c724aade3e4ef3.tar.bz2
bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)
'Untitled' violates the PEP 8 standard for .py files
-rw-r--r--Lib/idlelib/NEWS.txt2
-rw-r--r--Lib/idlelib/editor.py4
-rw-r--r--Misc/NEWS.d/next/IDLE/2019-01-18-01-24-23.bpo-35769.GqsB34.rst1
3 files changed, 5 insertions, 2 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index a458c39..222f187 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -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-35641: Properly format calltip for function without docstring.
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py
index d13ac37..e05b52a 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)
diff --git a/Misc/NEWS.d/next/IDLE/2019-01-18-01-24-23.bpo-35769.GqsB34.rst b/Misc/NEWS.d/next/IDLE/2019-01-18-01-24-23.bpo-35769.GqsB34.rst
new file mode 100644
index 0000000..79003a9
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2019-01-18-01-24-23.bpo-35769.GqsB34.rst
@@ -0,0 +1 @@
+Change IDLE's new file name from 'Untitled' to 'untitled'