• Barry Warsaw's avatar
    Two changes: · bf4d959d
    Barry Warsaw yazdı
    load_inst(): Implement the security hook that cPickle already had.
    When unpickling callables which are not classes, we look to see if the
    object has an attribute __safe_for_unpickling__.  If this exists and
    has a true value, then we can call it to create the unpickled object.
    Otherwise we raise an UnpicklingError.
    
    find_class(): We no longer mask ImportError, KeyError, and
    AttributeError by transforming them into SystemError.  The latter is
    definitely not the right thing to do, so we let the former three
    exceptions simply propagate up if they occur, i.e. we remove the
    try/except!
    bf4d959d
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...