Staging
v0.5.1
https://github.com/python/cpython
Revision 4eb0c003f8cd892800aa425fbde02ca9ecc76f34 authored by Ka-Ping Yee on 02 March 2001, 05:50:34 UTC, committed by Ka-Ping Yee on 02 March 2001, 05:50:34 UTC
    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.
1 parent 9054344
History
Tip revision: 4eb0c003f8cd892800aa425fbde02ca9ecc76f34 authored by Ka-Ping Yee on 02 March 2001, 05:50:34 UTC
Make getsourcefile() succeed even if the filename doesn't end in '.py' --
Tip revision: 4eb0c00

README

back to top