Soften the py3-only warning check

Change-Id: I4c770fab0366f70e7e01920498498a3b79bfc423
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-03-23 14:45:52 -05:00
parent 02df513aa8
commit bb128fca02
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8

View File

@ -207,7 +207,8 @@ def _validate_one(name, reqs, blacklist, global_reqs, allow_3_only=False):
if count != len(global_reqs[name]): if count != len(global_reqs[name]):
if (allow_3_only and if (allow_3_only and
count >= len(_get_python3_reqs(global_reqs[name]))): count >= len(_get_python3_reqs(global_reqs[name]))):
print("WARNING: Package '%s%s' is only tracking python 3 " print("WARNING (probably OK for Ussuri and later): "
"Package '%s%s' is only tracking python 3 "
"requirements" % ( "requirements" % (
name, name,
('[%s]' % extra) if extra else '')) ('[%s]' % extra) if extra else ''))