]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 18 Jan 2019 07:09:53 +0000 (02:09 -0500)
committerGitHub <noreply@github.com>
Fri, 18 Jan 2019 07:09:53 +0000 (02:09 -0500)
'Untitled' violates the PEP 8 standard for .py files

Lib/idlelib/NEWS.txt
Lib/idlelib/editor.py
Misc/NEWS.d/next/IDLE/2019-01-18-01-24-23.bpo-35769.GqsB34.rst [new file with mode: 0644]

index a458c395dda2bbac84cc87d7d1d48b8106506949..222f18710a743d61684c5135df735428cd761e7a 100644 (file)
@@ -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.
index d13ac3786da462989830693db6a49f19bc0e5092..e05b52a96dcc615c6e11ef1e5a31634944ea3819 100644 (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)
 
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 (file)
index 0000000..79003a9
--- /dev/null
@@ -0,0 +1 @@
+Change IDLE's new file name from 'Untitled' to 'untitled'