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:
parent
59271a697b
commit
5ac58d4a98
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user