Skip to content

Commit 02bddbb

Browse files
committed
wip
1 parent bea7078 commit 02bddbb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

_pydevd_bundle/pydevd_reload.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,12 @@ def notify_error(*args):
148148
# =======================================================================================================================
149149
def code_objects_equal(code0, code1):
150150
for d in dir(code0):
151-
if d.startswith("_") or "line" in d or d in ("replace", "co_positions", "co_qualname"):
151+
if d.startswith("_") or "line" in d or d in ("replace", "co_positions", "co_qualname", "co_branches"):
152152
continue
153-
if getattr(code0, d) != getattr(code1, d):
153+
val0 = getattr(code0, d)
154+
if callable(val0):
155+
continue # skip methods (e.g. co_branches in Python 3.14)
156+
if val0 != getattr(code1, d):
154157
return False
155158
return True
156159

0 commit comments

Comments
 (0)