[pitivi: 12/94] Optimize GlobalSettings.iterAllOptions by using existing variable



commit 9e9fb800ec225eccb8ca8f30e86eec0f315e6c3b
Author: Alex BÄluÈ <alexandru balut gmail com>
Date:   Sun Aug 21 18:05:02 2011 +0200

    Optimize GlobalSettings.iterAllOptions by using existing variable

 pitivi/settings.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/settings.py b/pitivi/settings.py
index 9c1f40d..bea184e 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -247,7 +247,7 @@ class GlobalSettings(Signallable):
         environment, value for each option)
         """
         for section, options in self.options.iteritems():
-            for attrname, (typ, key, environment) in self.options[section].iteritems():
+            for attrname, (typ, key, environment) in options.iteritems():
                 yield section, attrname, typ, key, environment, getattr(self, attrname)
 
     def iterSection(self, section):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]