def release(old, level=DEFAULT_LEVEL, count=1):

    if level not in _LEVELS:
        raise ReleaseError('Unknown release level: {level}\nShould be one of those: {levels}'.format(level=level, levels=_LEVELS))

    new_version = DevedVersion(old)

    if level == 'major':
        new_version.increase_major(count)
    elif level == 'minor':
        new_version.increase_minor(count)
    elif level == 'patch':
        new_version.increase_patch(count)
    elif level == 'dev':
        new_version.increase_dev(count)

    return new_version
Sorts goog.provide or goog.require statements.
dataset/ETHPy150Open n9code/pylease/pylease/releasemgmt.py/release--crossover with--dataset/ETHPy150Open google/closure-linter/closure_linter/requireprovidesorter.py/RequireProvideSorter._GetFixedRequireOrProvideString