diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2025-05-03 17:58:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-03 17:58:49 +0300 |
commit | 84a08f8629dffae355407cc3239c981a2b7a930a (patch) | |
tree | ef4d1322b70cf6c107eb2397d44240b40fb67454 /Lib/idlelib/pyshell.py | |
parent | add0ca9ea00ab02fd3a58d059e8370c2d0a1d32c (diff) | |
download | cpython-84a08f8629dffae355407cc3239c981a2b7a930a.tar.gz cpython-84a08f8629dffae355407cc3239c981a2b7a930a.zip |
gh-133306: Use \z instead of \Z in regular expressions in the stdlib (GH-133337)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-x | Lib/idlelib/pyshell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index 60b63d58cdd..74a0e03994f 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -1350,7 +1350,7 @@ class PyShell(OutputWindow): self.text.see("insert") self.text.undo_block_stop() - _last_newline_re = re.compile(r"[ \t]*(\n[ \t]*)?\Z") + _last_newline_re = re.compile(r"[ \t]*(\n[ \t]*)?\z") def runit(self): index_before = self.text.index("end-2c") line = self.text.get("iomark", "end-1c") |