def serialize(obj, **options):

    #round-trip this through JSON to avoid OrderedDict types
    # there's probably a more performant way to do this...
    # TODO remove json round-trip when all dataset will use
    # serializers
    return pprint.pformat(
        json.loads(
            json.dumps(obj),
            object_hook=salt.utils.decode_dict
        ),
        **options
    )
Test commit_hook._stash_unstaged handles no initial commit
dataset/ETHPy150Open saltstack/salt/salt/serializers/python.py/serialize--crossover with--dataset/ETHPy150Open sebdah/git-pylint-commit-hook/tests.py/TestHook.test_stash_unstaged_no_initial