[kernel] r14505 - people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig

Bastian Blank waldi at alioth.debian.org
Thu Oct 29 11:45:46 UTC 2009


Author: waldi
Date: Thu Oct 29 11:45:45 2009
New Revision: 14505

Log:
lib/kconfigeditor/kconfig/config.py: Readd fd init of File object.

Modified:
   people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py

Modified: people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py
==============================================================================
--- people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py	Thu Oct 29 11:41:24 2009	(r14504)
+++ people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py	Thu Oct 29 11:45:45 2009	(r14505)
@@ -6,8 +6,10 @@
 
 
 class File(dict):
-    def __init__(self, content={}):
+    def __init__(self, content={}, fd=None):
         super(File, self).__init__(content)
+        if fd:
+            self.read(fd)
 
     def _write(self, menufiles):
         visible = self._write_check_visible(menufiles)



More information about the Kernel-svn-changes mailing list