scripts/version.py
def diff(version0, version1):
    """
    Display the terms added and removed between two versions
    :param version0:
    :param version1:
    :return:
    """
    version0.load()
    version1.load()

    deleted = set(version0.terms) - set(version1.terms)
    added = set(version1.terms) - set(version0.terms)

    print("====\n\tfrom: {0}".format(str(version0)))
    print("\n".join(("-{0} -- {1}".format(str(d), version0.translations['en'][d]) for d in deleted)))

    print("====\n\tto: {0}".format(str(version1)))
    print("\n".join(("+{0} -- {1}".format(str(d), version1.translations['en'][d]) for d in added)))
def diff(version0, version1):
    """
    Display the terms added and removed between two versions
    :param version0:
    :param version1:
    :return:
    """
    version0.load()
    version1.load()

    deleted = set(version0.terms) - set(version1.terms)
    added = set(version1.terms) - set(version0.terms)

    print("====\n\tfrom: {0}".format(str(version0)))
    print("\n".join(("-{0} -- {1}".format(str(d), version0.translations['en'][d]) for d in deleted)))

    print("====\n\tto: {0}".format(str(version1)))
    print("\n".join(("+{0} -- {1}".format(str(d), version1.translations['en'][d]) for d in added)))
Display the terms added and removed between two versions
    :param version0:
    :param version1:
    :return: