]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-127651: Use __file__ in diagnostics if origin is missing (#127660) (#127775)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Tue, 10 Dec 2024 05:21:55 +0000 (21:21 -0800)
committerGitHub <noreply@github.com>
Tue, 10 Dec 2024 05:21:55 +0000 (05:21 +0000)
commit6441d42f92f9daa2f3d9ff0ec3de0d60c26e041d
treef8b42dbfb40464c13dfbd46e3af3131e842a33f4
parent310efdabf556c513de9bf38820e20f5289931b55
[3.13] gh-127651: Use __file__ in diagnostics if origin is missing (#127660) (#127775)

gh-127651: Use __file__ in diagnostics if origin is missing (#127660)

See the left hand side in https://github.com/python/cpython/pull/123929/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59deL2840-L2849

---------

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 3983527c3a6b389e373a233e514919555853ccb3)
Lib/test/test_import/__init__.py
Misc/NEWS.d/next/Core and Builtins/2024-12-06-01-09-40.gh-issue-127651.80cm6j.rst [new file with mode: 0644]
Python/ceval.c