diff options
author | Ka-Ping Yee <ping@zesty.ca> | 2001-03-02 05:50:34 +0000 |
---|---|---|
committer | Ka-Ping Yee <ping@zesty.ca> | 2001-03-02 05:50:34 +0000 |
commit | 4eb0c003f8cd892800aa425fbde02ca9ecc76f34 (patch) | |
tree | a46a1250eb1627879deea0e4779953110bc6a66a /Python/import.c | |
parent | 9054344d1405cd31ea11e729edac2784dc19b6f2 (diff) | |
download | cpython-git-4eb0c003f8cd892800aa425fbde02ca9ecc76f34.tar.gz |
Make getsourcefile() succeed even if the filename doesn't end in '.py' --
as long as the filename also doesn't end in a suffix that indicates
a binary file (according to the flags in imp.get_suffixes()).
Shrink try...except clauses and replace some of them with explicit checks.
Diffstat (limited to 'Python/import.c')
0 files changed, 0 insertions, 0 deletions