https://github.com/python/cpython/commit/8f778f7bb9a8ad80fc06570566ad4de541826178
commit: 8f778f7bb9a8ad80fc06570566ad4de541826178
branch: main
author: Christian Veenhuis <124370897+chv...@users.noreply.github.com>
committer: methane <songofaca...@gmail.com>
date: 2025-06-04T13:57:31+09:00
summary:

gh-135103: Remove an unused local variable in Lib/code.py (GH-135104)

remove unused local variable

files:
M Lib/code.py

diff --git a/Lib/code.py b/Lib/code.py
index b134886dc267fb..f7e275d8801b7c 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -224,7 +224,7 @@ def interact(self, banner=None, exitmsg=None):
             sys.ps1 = ">>> "
             delete_ps1_after = True
         try:
-            _ps2 = sys.ps2
+            sys.ps2
             delete_ps2_after = False
         except AttributeError:
             sys.ps2 = "... "

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to