diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-24 20:56:21 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-24 20:56:21 +0100 |
| commit | 574f425cc1ebece0aa5f09fb77a8cb7ad0310a1f (patch) | |
| tree | e2ded87bb0e66cd9e88ae8d4ffc3846f788343bf /lib/python/Components/ParentalControl.py | |
| parent | 5a6bde9419249a78c957093e0cc438d7c6eeb46c (diff) | |
| download | enigma2-574f425cc1ebece0aa5f09fb77a8cb7ad0310a1f.tar.gz enigma2-574f425cc1ebece0aa5f09fb77a8cb7ad0310a1f.zip | |
small optimizations and cleanups by Moritz Venn
Diffstat (limited to 'lib/python/Components/ParentalControl.py')
| -rw-r--r-- | lib/python/Components/ParentalControl.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/python/Components/ParentalControl.py b/lib/python/Components/ParentalControl.py index 8c8a3305..d68e01ff 100644 --- a/lib/python/Components/ParentalControl.py +++ b/lib/python/Components/ParentalControl.py @@ -33,7 +33,7 @@ def InitParentalControl(): config.ParentalControl.servicepin = ConfigSubList() - for i in range(3): + for i in (0, 1, 2): config.ParentalControl.servicepin.append(ConfigPIN(default = -1)) #config.ParentalControl.servicepin.append(configElement("config.ParentalControl.servicepin.level" + str(i), configSequence, "0000", configSequenceArg().get("PINCODE", (4, "")))) @@ -117,10 +117,7 @@ class ParentalControl: return -1 def getPinList(self): - pinList = [] - for x in config.ParentalControl.servicepin: - pinList.append(x.value) - return pinList + return [ x.value for x in config.ParentalControl.servicepin ] def servicePinEntered(self, service, result): # levelNeeded = 0 |
