diff options
author | Martin DeMello <martindemello@fb.com> | 2025-03-28 23:58:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-28 23:58:17 (GMT) |
commit | 9c1e85fd64cf6a85f7c96390d7b2dfad03a76944 (patch) | |
tree | 13c78959a1c0e952820209a763adf61743a93b42 /Python/bytecodes.c | |
parent | 2984ff9e5196aa575c7322c2040d55dd4d4eaa02 (diff) | |
download | cpython-9c1e85fd64cf6a85f7c96390d7b2dfad03a76944.zip cpython-9c1e85fd64cf6a85f7c96390d7b2dfad03a76944.tar.gz cpython-9c1e85fd64cf6a85f7c96390d7b2dfad03a76944.tar.bz2 |
gh-131740: minor readability fix in PyUnstable_GC_VisitObjects (gh-131786)
Minor readability fix in PyUnstable_GC_VisitObjects
Replaces `if (visit_generation())` with `if (visit_generation() < 0)`,
since we are checking for the failure case, and it's confusing to have
that be implicitly `true`.
Also fixes a misspelt variable name.
Diffstat (limited to 'Python/bytecodes.c')
0 files changed, 0 insertions, 0 deletions