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
File Mode Size
.cvsignore -rw-r--r-- 21 bytes
ref.tex -rw-r--r-- 2.0 KB
ref1.tex -rw-r--r-- 4.1 KB
ref2.tex -rw-r--r-- 21.3 KB
ref3.tex -rw-r--r-- 63.1 KB
ref4.tex -rw-r--r-- 10.1 KB
ref5.tex -rw-r--r-- 36.5 KB
ref6.tex -rw-r--r-- 26.0 KB
ref7.tex -rw-r--r-- 17.7 KB
ref8.tex -rw-r--r-- 3.4 KB
reswords.py -rw-r--r-- 771 bytes

back to top