Change some backslash and continue on next line
authorLittlesat <littlesat99@yahoo.com>
Fri, 1 Feb 2013 20:10:04 +0000 (21:10 +0100)
committerLittlesat <littlesat99@yahoo.com>
Fri, 1 Feb 2013 20:10:04 +0000 (21:10 +0100)
As it makes the code less readable

ServiceReference.py
lib/python/Components/Converter/ServiceName.py
lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py
lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py

index f83b7a7..a781912 100644 (file)
@@ -1,5 +1,4 @@
-from enigma import eServiceReference, eServiceCenter, \
- getBestPlayableServiceReference
+from enigma import eServiceReference, eServiceCenter, getBestPlayableServiceReference
 import NavigationInstance
 
 class ServiceReference(eServiceReference):
@@ -41,8 +40,7 @@ class ServiceReference(eServiceReference):
 def getPlayingref(ref):
        playingref = None
        if NavigationInstance.instance:
-               playingref = NavigationInstance.instance.\
-                       getCurrentlyPlayingServiceReference()
+               playingref = NavigationInstance.instance.getCurrentlyPlayingServiceReference()
        if not playingref:
                playingref = eServiceReference()
        return playingref
@@ -54,8 +52,7 @@ def isPlayableForCur(ref):
 def resolveAlternate(ref):
        nref = None
        if ref.flags & eServiceReference.isGroup:
-               nref \
-                = getBestPlayableServiceReference(ref, getPlayingref(ref))
+               nref = getBestPlayableServiceReference(ref, getPlayingref(ref))
                if not nref:
                        nref = getBestPlayableServiceReference(ref,
                         eServiceReference(), True)
index 4255750..1a291e1 100644 (file)
@@ -38,9 +38,7 @@ class ServiceName(Converter, object):
                        return info.getInfoString(iServiceInformation.sProvider)
                elif self.type == self.REFERENCE:
                        if not ref:
-                               return \
-                                info.getInfoString( \
-                                 iServiceInformation.sServiceref)
+                               return info.getInfoString(iServiceInformation.sServiceref)
                        nref = resolveAlternate(ref)
                        if nref:
                                ref = nref
index a1eeeab..a919eb3 100644 (file)
@@ -24,10 +24,8 @@ from RecordTimer import RecordTimerEntry, parseEvent, AFTEREVENT
 from ServiceReference import ServiceReference, isPlayableForCur
 from Tools.LoadPixmap import LoadPixmap
 from Tools.Alternatives import CompareWithAlternatives
-from enigma import eEPGCache, eListbox, ePicLoad, gFont, \
- eListboxPythonMultiContent, \
- RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_HALIGN_CENTER, RT_VALIGN_CENTER, RT_WRAP,\
- eSize, eRect, eTimer, getBestPlayableServiceReference
+from enigma import eEPGCache, eListbox, ePicLoad, gFont, eListboxPythonMultiContent, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_HALIGN_CENTER, RT_VALIGN_CENTER, RT_WRAP,\
+       eSize, eRect, eTimer, getBestPlayableServiceReference
 from GraphMultiEpgSetup import GraphMultiEpgSetup
 from time import localtime, time, strftime
 
@@ -438,11 +436,9 @@ class EPGList(HTMLComponent, GUIComponent):
                                foreColorSelected = foreColor = self.foreColor
                                if stime <= now and now < stime + duration:
                                        backColor = self.backColorNow
-                                       if isPlayableForCur( \
-                                        ServiceReference(service).ref):
+                                       if isPlayableForCur( ServiceReference(service).ref):
                                                foreColor = self.foreColorNow
-                                               foreColorSelected \
-                                                = self.foreColorSelected
+                                               foreColorSelected = self.foreColorSelected
                                else:
                                        backColor = self.backColor
 
index a91283d..f320699 100644 (file)
@@ -109,8 +109,7 @@ class SkinSelector(Screen):
                        pngpath = "."
                else:
                        pngpath = self["SkinList"].getCurrent()
-               pngpath = os.path.join(os.path.join(self.root, pngpath), \
-                "prev.png")
+               pngpath = os.path.join(os.path.join(self.root, pngpath), "prev.png")
 
                if not os.path.exists(pngpath):
                        pngpath = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/SkinSelector/noprev.png")