- use dict.items() to get at keys and values in one go
- list.reverse() reverses the list in place, use reversed() instead
Signed-off-by: Nils Philippsen <nils@redhat.com>
This allows us to reuse code, e.g. to get info out of Koji, for both
calculating release tags and generating the changelog.
Signed-off-by: Nils Philippsen <nils@redhat.com>