| commit | 4eb0c003f8cd892800aa425fbde02ca9ecc76f34 | [log] [tgz] |
|---|---|---|
| author | Ka-Ping Yee <ping@zesty.ca> | Fri Mar 02 05:50:34 2001 +0000 |
| committer | Ka-Ping Yee <ping@zesty.ca> | Fri Mar 02 05:50:34 2001 +0000 |
| tree | a46a1250eb1627879deea0e4779953110bc6a66a | |
| parent | 9054344d1405cd31ea11e729edac2784dc19b6f2 [diff] |
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.