@contextmanager<EOL>def patch_ligotimegps(module="<STR_LIT>"):
module = import_module(module)<EOL>orig = module.LIGOTimeGPS<EOL>module.LIGOTimeGPS = _ligotimegps<EOL>try:<EOL><INDENT>yield<EOL><DEDENT>finally:<EOL><INDENT>module.LIGOTimeGPS = orig<EOL><DEDENT>
Context manager to on-the-fly patch LIGOTimeGPS to accept all int types