]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 18 Jan 2019 07:24:09 +0000 (23:24 -0800)
committerGitHub <noreply@github.com>
Fri, 18 Jan 2019 07:24:09 +0000 (23:24 -0800)
'Untitled' violates the PEP 8 standard for .py files
(cherry picked from commit a902239f22c322d8988c514dd1c724aade3e4ef3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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 aa50145b9d95228cfe7e23a327304048190b60ec..a1964def362b989cee78d546980daa9672cf2245 100644 (file)
@@ -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.
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'