]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-135103: Remove an unused local variable in Lib/code.py (GH-135104)
authorChristian Veenhuis <124370897+ChVeen@users.noreply.github.com>
Wed, 4 Jun 2025 04:57:31 +0000 (06:57 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Jun 2025 04:57:31 +0000 (13:57 +0900)
remove unused local variable

Lib/code.py

index b134886dc267fbd2f242c4ccdb68fc497b63164d..f7e275d8801b7c3de0c43b6576661e583a6c2263 100644 (file)
@@ -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 = "... "