vidua.ips module

vidua.ips.patch(source, ips_patch)

Return the patched source.

Parameters:
  • source (BinaryIO) – the source file to be patched

  • ips_patch (BinaryIO) – the patch file

Return type:

BinaryIO

vidua.ips.validate_patch(ips_patch)

Verify that ips_patch is a valid BPS patch.

If the patch is valid, return. If the patch is invalid, raise a ValueError describing the problem.

Parameters:

ips_patch (BinaryIO) – the patch file