Fix E275 error with latest flake8

hacking 6.0.0 release contains flake8 5.0.4, which started to show the
following error:

./openstack_releases/versionutils.py:54:14: E275 missing whitespace after keyword
        yield('Version %s looks like a pre-release and the release '

This patch adds a whitespace after the 'yield' keyword to make the pep8
job pass.

Change-Id: I433ccb6a31cc450a666673374b78dcc1fea1bb7b
This commit is contained in:
Előd Illés 2023-04-19 14:59:16 +02:00
parent 59271a697b
commit 5ac58d4a98

View File

@ -51,8 +51,8 @@ def validate_version(versionstr, release_type='python-service', pre_ok=True):
"""
if not pre_ok and looks_like_preversion(versionstr):
yield('Version %s looks like a pre-release and the release '
'model does not allow for it' % versionstr)
yield ('Version %s looks like a pre-release and the release '
'model does not allow for it' % versionstr)
if release_type not in _VALIDATORS:
yield 'Release Type %r not valid using \'python-service\' instead' % release_type