Skip to content

Commit

Permalink
PEP8 double aggressive E22, E224, E241, E242 and E27
Browse files Browse the repository at this point in the history
  • Loading branch information
openvix-bot committed Oct 9, 2023
1 parent 7278735 commit 7081426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/python/Components/Converter/MovieInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ def getText(self):
elif self.type == self.MOVIE_REC_FILESIZE:
return self.getFileSize(service, info)
elif self.type == self.FORMAT_STRING:
timeCreate = strftime("%A %d %b %Y", localtime(info.getInfo(service, iServiceInformation.sTimeCreate)))
timeCreate = strftime("%A %d %b %Y", localtime(info.getInfo(service, iServiceInformation.sTimeCreate)))
duration = "%d min" % (info.getLength(service) / 60)
filesize = "%d MB" % (info.getInfoObject(service, iServiceInformation.sFileSize) / (1024*1024))
filesize = "%d MB" % (info.getInfoObject(service, iServiceInformation.sFileSize) / (1024 * 1024))
res_str = ""
for x in self.parts[1:]:
if x == "TIMECREATED" and timeCreate != '':
Expand Down
4 changes: 2 additions & 2 deletions lib/python/Components/Converter/ServiceName.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ def getOrbitalPos(self, ref, info):
try:
position = tp_data["orbital_position"]
if position > 1800: # west
orbitalpos = "%.1f " %(float(3600 - position)/10) + _("W")
orbitalpos = "%.1f " % (float(3600 - position) / 10) + _("W")
else:
orbitalpos = "%.1f " %(float(position)/10) + _("E")
orbitalpos = "%.1f " % (float(position) / 10) + _("E")
except:
pass
return orbitalpos

0 comments on commit 7081426

Please sign in to comment.