gh-133306: Use \z instead of \Z in regular expressions in the stdlib (GH-133337)

This commit is contained in:
Serhiy Storchaka 2025-05-03 17:58:49 +03:00 committed by GitHub
parent add0ca9ea0
commit 84a08f8629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 23 additions and 23 deletions

View file

@ -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")