aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/code.py
diff options
context:
space:
mode:
authorChristian Veenhuis <124370897+ChVeen@users.noreply.github.com>2025-06-04 06:57:31 +0200
committerGitHub <noreply@github.com>2025-06-04 13:57:31 +0900
commit8f778f7bb9a8ad80fc06570566ad4de541826178 (patch)
tree8a8035296bc4182635edfd293ce26a73f556d880 /Lib/code.py
parentdba9de731b231ca0c079205f496d1e3d178b4fd3 (diff)
downloadcpython-8f778f7bb9a8ad80fc06570566ad4de541826178.tar.gz
cpython-8f778f7bb9a8ad80fc06570566ad4de541826178.zip
gh-135103: Remove an unused local variable in Lib/code.py (GH-135104)
remove unused local variable
Diffstat (limited to 'Lib/code.py')
-rw-r--r--Lib/code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/code.py b/Lib/code.py
index b134886dc26..f7e275d8801 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -224,7 +224,7 @@ class InteractiveConsole(InteractiveInterpreter):
sys.ps1 = ">>> "
delete_ps1_after = True
try:
- _ps2 = sys.ps2
+ sys.ps2
delete_ps2_after = False
except AttributeError:
sys.ps2 = "... "