Code used to support old snapshots, and update scripts.
|
|
preprocess_state(class_,
state_mod_fn)
Allow processing of state with state_mod_fn before
class_.__setstate__(instance,state) is called. |
source code
|
|
|
|
select_setstate(class_,
selector,
pre_super=False,
post_super=True)
Select appropriate function to call as a replacement
for class.__setstate__ at runtime. |
source code
|
|
|
|
fake_a_class(module,
old_name,
new_class,
new_class_args=())
Install a class named 'old_name' in 'module'; when created,
the class actually returns an instance of 'new_class'. |
source code
|
|
|
|
|
|
|
fake_a_module(name,
parent,
source_code,
parent_path=None)
Create the module parent.name using source_code. |
source code
|
|
|
|
|
|
|
|