diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-04-24 02:25:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 19:25:08 -0400 |
commit | bd2dca035af88694e25fb060f984fbbcda82bed8 (patch) | |
tree | fed7d54ec1154ebc7390967d78c61e911509fae2 /Lib/idlelib/filelist.py | |
parent | 7255bbd4a1841447a21c3eb74e4fd9e21818d833 (diff) | |
download | cpython-git-bd2dca035af88694e25fb060f984fbbcda82bed8.tar.gz |
gh-103668: Run pyugrade on idlelib (#103671)
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/filelist.py')
-rw-r--r-- | Lib/idlelib/filelist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/filelist.py b/Lib/idlelib/filelist.py index 254f5caf6b..f87781d257 100644 --- a/Lib/idlelib/filelist.py +++ b/Lib/idlelib/filelist.py @@ -22,7 +22,7 @@ class FileList: # This can happen when bad filename is passed on command line: messagebox.showerror( "File Error", - "%r is a directory." % (filename,), + f"{filename!r} is a directory.", master=self.root) return None key = os.path.normcase(filename) @@ -90,7 +90,7 @@ class FileList: self.inversedict[conflict] = None messagebox.showerror( "Name Conflict", - "You now have multiple edit windows open for %r" % (filename,), + f"You now have multiple edit windows open for {filename!r}", master=self.root) self.dict[newkey] = edit self.inversedict[edit] = newkey |