aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Converter/ServiceTime.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-01-27 00:04:59 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-01-27 00:04:59 +0100
commit15d7074f55a2c3dd38ce9877626be6ec32b448d2 (patch)
treed00b0e0de23212eed1432c8661ac13e27728f107 /lib/python/Components/Converter/ServiceTime.py
parenta4fd5bddb0f8c1b05b963cb8af9692f6c89f3dab (diff)
downloadenigma2-15d7074f55a2c3dd38ce9877626be6ec32b448d2.tar.gz
enigma2-15d7074f55a2c3dd38ce9877626be6ec32b448d2.zip
fixes for python 2.6 by Moritz Venn
Diffstat (limited to 'lib/python/Components/Converter/ServiceTime.py')
-rw-r--r--lib/python/Components/Converter/ServiceTime.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Components/Converter/ServiceTime.py b/lib/python/Components/Converter/ServiceTime.py
index 16bcae3a..89965067 100644
--- a/lib/python/Components/Converter/ServiceTime.py
+++ b/lib/python/Components/Converter/ServiceTime.py
@@ -1,5 +1,5 @@
from Converter import Converter
-from Components.Element import cached
+from Components.Element import cached, ElementError
from enigma import iServiceInformation
class ServiceTime(Converter, object):
@@ -16,7 +16,7 @@ class ServiceTime(Converter, object):
elif type == "Duration":
self.type = self.DURATION
else:
- raise str("'%s' is not <StartTime|EndTime|Duration> for eEventTime converter" % type)
+ raise ElementError("'%s' is not <StartTime|EndTime|Duration> for eEventTime converter" % type)
@cached
def getTime(self):