patchupdate.py: Small code style improvement.

This commit is contained in:
Sebastian Lackner 2014-07-25 21:59:34 +02:00
parent 60632bb522
commit 208b3c1d25

View File

@ -544,8 +544,8 @@ def generate_readme(all_patches, fp):
# Get version number of the latest stable release
def _latest_stable_version():
for package, version, distro in _read_changelog():
if distro.lower() == "unreleased": continue
return version
if distro.lower() != "unreleased":
return version
fp.write(README_template.format(bugs=_enum(_all_bugs()), fixes=_enum(_all_fixes()), version=_latest_stable_version()))