Staging
v0.5.0
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
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.cvsignore -rw-r--r-- 79 bytes
.hgtags -rw-r--r-- 1.8 KB
LICENSE -rw-r--r-- 8.6 KB
Makefile.pre.in -rw-r--r-- 21.8 KB
README -rw-r--r-- 36.2 KB
acconfig.h -rw-r--r-- 6.1 KB
config.h.in -rw-r--r-- 16.5 KB
configure -rwxr-xr-x 176.9 KB
configure.in -rw-r--r-- 35.7 KB
install-sh -rwxr-xr-x 5.5 KB
setup.py -rw-r--r-- 25.2 KB

README

back to top