Skip to content

Commit 38ce56f

Browse files
committed
Have deprecation messages match cpython
1 parent ca70b6d commit 38ce56f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/pdb.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ class Pdb(Bdb, Cmd):
6262
curframe: FrameType | None
6363
if sys.version_info >= (3, 13):
6464
@property
65-
@deprecated("curframe_locals is deprecated. Derived debuggers should access pdb.Pdb.curframe.f_locals instead.")
65+
@deprecated("The frame locals reference is no longer cached. Use 'curframe.f_locals' instead.")
6666
def curframe_locals(self) -> Mapping[str, Any]: ...
6767
@curframe_locals.setter
68-
@deprecated("curframe_locals is deprecated. Derived debuggers should access pdb.Pdb.curframe.f_locals instead.")
68+
@deprecated("Setting 'curframe_locals' no longer has any effect. Update the contents of 'curframe.f_locals' instead.")
6969
def curframe_locals(self, value: Mapping[str, Any]) -> None: ...
7070
else:
7171
curframe_locals: Mapping[str, Any]

0 commit comments

Comments
 (0)