small optimizations and cleanups by Moritz Venn
[vuplus_dvbapp] / lib / python / Components / Timezones.py
index f3e24ee..7f70915 100644 (file)
@@ -52,11 +52,8 @@ class Timezones:
                        e_tzset()
                
        def getTimezoneList(self):
-               list = []
-               for x in self.timezones:
-                       list.append(str(x[0]))
-               return list
-       
+               return [ str(x[0]) for x in self.timezones ]
+
        def getDefaultTimezone(self):
                # TODO return something more useful - depending on country-settings?
                t = "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Vienna"