def compare_cmaps(
    base_cps, target_cps, only_cps, except_cps, no_additions, no_removals):
  if only_cps:
    base_cps &= only_cps
    target_cps &= only_cps
  if except_cps:
    base_cps -= except_cps
    target_cps -= except_cps
  if base_cps != target_cps:
    added = None if no_additions else target_cps - base_cps
    removed = None if no_removals else base_cps - target_cps
  else:
    added, removed = None, None
  return added, removed
Set the owner of all schemas, functions, tables, views and sequences to
dataset/ETHPy150Open googlei18n/nototools/nototools/compare_cmap_data.py/compare_cmaps--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/owner_to