[Python-checkins] bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)

Miss Islington (bot) webhook-mailer at python.org
Fri Jan 18 02:24:14 EST 2019


https://github.com/python/cpython/commit/5f9a168a313485791d85250e5bf673b66bd51244
commit: 5f9a168a313485791d85250e5bf673b66bd51244
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-01-17T23:24:09-08:00
summary:

bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)


'Untitled' violates the PEP 8 standard for .py files
(cherry picked from commit a902239f22c322d8988c514dd1c724aade3e4ef3)

Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>

files:
A Misc/NEWS.d/next/IDLE/2019-01-18-01-24-23.bpo-35769.GqsB34.rst
M Lib/idlelib/NEWS.txt
M Lib/idlelib/editor.py

diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index aa50145b9d95..a1964def362b 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -3,6 +3,8 @@ Released on 2019-??-??
 ======================================
 
 
+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 d13ac3786da4..e05b52a96dcc 100644
--- a/Lib/idlelib/editor.py
+++ b/Lib/idlelib/editor.py
@@ -943,7 +943,7 @@ def saved_change_hook(self):
         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 @@ def short_title(self):
         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 000000000000..79003a984a9f
--- /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'



More information about the Python-checkins mailing list