SIGN IN SIGN UP

[3.13] gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (GH-128047) (#128114)

gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (GH-128047)

I missed the extra `PyModule_Check` in GH-127660 because I was looking at
3.12 as the base implementation for import from. This meant that I
missed the `PyModuleCheck` introduced in GH-112661.
(cherry picked from commit 45e6dd63b88a782f2ec96ab1da54eb5a074d8f4c)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
M
Miss Islington (bot) committed
f320f747da2ad7b1eb039b2d7b475e0ac057fa49
Parent: 3a8bdaf
Committed by GitHub <noreply@github.com> on 12/20/2024, 8:46:54 AM