Skip to content

Commit 89522a9

Browse files
committed
fixing pep8 linting
1 parent 6bbfd85 commit 89522a9

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • plugins/module_utils/software_center

plugins/module_utils/software_center/search.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,25 +309,24 @@ def _prepare_search_filename(filename):
309309
suggested = filename_parts[0]
310310
return suggested, _increment_last_digits(suggested)
311311

312-
313312
# Revision version will be kept to ensure correct component versions.
314313
# Example: IMDB_SERVER20_067_4-80002046.SAR returns IMDB_SERVER20_067 (Rev 67)
315314
# Example: IMDB_AFL20_077_0-80002045.SAR returns IMDB_AFL20_077 (Rev 77)
316315
# Example: IMDB_AFL100_102P_41-10012328.SAR returns MDB_AFL100_102 (Rev 102)
317316
# Example: IMDB_LCAPPS_122P_3300-20010426.SAR returns IMDB_LCAPPS_122 (Rev 122)
318317
# Example: IMDB_LCAPPS_2067P_400-80002183.SAR returns IMDB_LCAPPS_2067 (Rev 67)
319-
elif filename_base.startswith(('IMDB_SERVER', 'IMDB_AFL', 'IMDB_LCAPPS_1', 'IMDB_LCAPPS_2')):
318+
elif filename_base.startswith(('IMDB_SERVER', 'IMDB_AFL', 'IMDB_LCAPPS_1', 'IMDB_LCAPPS_2')):
320319
# Remove P from the 3rd element (index 2) to improve fuzzy search.
321320
if len(filename_parts) > 2:
322-
filename_parts[2] = filename_parts[2].rstrip('Pp')
321+
filename_parts[2] = filename_parts[2].rstrip('Pp')
323322
# Re-join the first three elements -> "IMDB_AFL100_102"
324323
suggested = "_".join(filename_parts[:3])
325324
return suggested, None
326325

327326
# Example: IMDB_CLIENT20_021_31-80002082.SAR returns IMDB_CLIENT20_021
328-
elif filename_base.startswith('IMDB_CLIENT'):
327+
elif filename_base.startswith('IMDB_CLIENT'):
329328
if len(filename_parts) > 2:
330-
filename_parts[2] = filename_parts[2].rstrip('Pp')
329+
filename_parts[2] = filename_parts[2].rstrip('Pp')
331330
suggested = "_".join(filename_parts[:3])
332331
return suggested, _increment_last_digits(suggested)
333332

0 commit comments

Comments
 (0)