use if 'x' in s instead of str.find()
It's more readable. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
7a3bf2791e
commit
785e23b2c0
1 changed files with 1 additions and 1 deletions
|
|
@ -1053,7 +1053,7 @@ def _check_NVRA(nvra):
|
|||
def is_debuginfo(name):
|
||||
"""Determines if an rpm is a debuginfo rpm, based on name"""
|
||||
if name.endswith('-debuginfo') or name.endswith('-debugsource') or \
|
||||
name.find('-debuginfo-') != -1:
|
||||
'-debuginfo-' in name:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue