gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (#128047)
I missed the extra `PyModule_Check` in #127660 because I was looking at 3.12 as the base implementation for import from. This meant that I missed the `PyModuleCheck` introduced in #112661.
S
Shantanu committed
45e6dd63b88a782f2ec96ab1da54eb5a074d8f4c
Parent: daa260e
Committed by GitHub <noreply@github.com>
on 12/20/2024, 8:22:26 AM