recipy.PatchFileOpenLike module

class recipy.PatchFileOpenLike.PatchFileOpenLike

Bases: recipy.PatchSimple.PatchSimple

Object that patches a function and either logs it as input or output based on an argument/implemented function.

Should be subclassed.

patch(mod)

Do the patching of input_functions and output_functions in mod using input_wrapper and output_wrapper respectively.