Skip to content

Commit

Permalink
[MovieSelection] more pep noise
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Oct 7, 2023
1 parent c58e46c commit 6a21677
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/python/Screens/MovieSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,7 @@ def __onTimerChoiceDelete(self, delList, recList, delInfo):

def __showDeleteConfirmation(self, delList, delInfo):
dirCount, fileCount, subItemCount, inTrash = delInfo
callback = lambda confirmed: self.__permanentDeleteListConfirmed(delList, confirmed)
callback = lambda confirmed: self.__permanentDeleteListConfirmed(delList, confirmed) # noqa: E731
itemCount = dirCount + fileCount
singleName = None
if itemCount == 1:
Expand All @@ -2320,7 +2320,7 @@ def __showDeleteConfirmation(self, delList, delInfo):
are_you_sure = _("Do you really want to move '%s' to the trash can?") % singleName
else:
are_you_sure = _("Do you really want to move these %d items to the trash can?") % itemCount
callback = lambda confirmed: self.__deleteListConfirmed(delList, confirmed)
callback = lambda confirmed: self.__deleteListConfirmed(delList, confirmed) # noqa: E731
else:
if itemCount == 1:
are_you_sure = _("Do you really want to permanently delete '%s'?") % singleName
Expand Down Expand Up @@ -2498,7 +2498,7 @@ def do_sort(self):
index = 0
else:
index += 1
#descriptions in native languages too long...
# descriptions in native languages too long...
sorttext = l_moviesort[index][2]
if config.movielist.btn_red.value == "sort":
self['key_red'].setText(sorttext)
Expand All @@ -2516,7 +2516,7 @@ def do_sort(self):

def installedMovieManagerPlugin(self):
try:
from Plugins.Extensions.MovieManager.ui import MovieManager
from Plugins.Extensions.MovieManager.ui import MovieManager # noqa: F401
return True
except Exception as e:
print("[MovieSelection] MovieManager is not installed...", e)
Expand Down

0 comments on commit 6a21677

Please sign in to comment.