Skip to content

Commit

Permalink
PEP8 double aggressive W291 ~ W293 and W391
Browse files Browse the repository at this point in the history
  • Loading branch information
Open Vision python bot committed Oct 3, 2024
1 parent bf55128 commit 4f72c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/UsageConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ def EpgSettingsChanged(configElement):

def wdhm(number):
units = ((_("week"), _("day"), _("hour"), _("minute")), (_("weeks"), _("days"), _("hours"), _("minutes")), (7 * 24 * 60, 24 * 60, 60, 1))
for i, d in enumerate(units[2]):
for i, d in enumerate(units[2]):
if unit := int(number / d):
return "%s %s" % (unit, units[0 if unit == 1 else 1][i])
return "0 minutes"
Expand Down

0 comments on commit 4f72c6d

Please sign in to comment.