summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2001-03-02 05:50:34 +0000
committerKa-Ping Yee <ping@zesty.ca>2001-03-02 05:50:34 +0000
commit4eb0c003f8cd892800aa425fbde02ca9ecc76f34 (patch)
treea46a1250eb1627879deea0e4779953110bc6a66a /Python/import.c
parent9054344d1405cd31ea11e729edac2784dc19b6f2 (diff)
downloadcpython-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