Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def load_unreleased_changes(d):
if not os.path.exists(d):
return None
return ReleaseChanges(None, date.today().isoformat(), load_unreleased_entries(d))
def parse_release_changes(changes_json):
version = parse_version_string(changes_json['version'])
date = changes_json['date']
entries = [parse_changelog_entry(e) for e in changes_json['entries']]
return ReleaseChanges(version, date, entries)