Author: waldi
Date: Sat Mar  8 22:16:17 2008
New Revision: 10753

Log:
lib/dkt/config/base.py, lib/dkt/config/interfaces.py: Add setdefault.


Modified:
   people/waldi/dkt/lib/dkt/config/base.py
   people/waldi/dkt/lib/dkt/config/interfaces.py

Modified: people/waldi/dkt/lib/dkt/config/base.py
==============================================================================
--- people/waldi/dkt/lib/dkt/config/base.py     (original)
+++ people/waldi/dkt/lib/dkt/config/base.py     Sat Mar  8 22:16:17 2008
@@ -93,3 +93,7 @@
         s = self._sections.get(section)
         s[option] = value
 
+    def setdefault(self, section, option, value = None):
+        s = self._sections.get(section)
+        return s.setdefault(option, value)
+

Modified: people/waldi/dkt/lib/dkt/config/interfaces.py
==============================================================================
--- people/waldi/dkt/lib/dkt/config/interfaces.py       (original)
+++ people/waldi/dkt/lib/dkt/config/interfaces.py       Sat Mar  8 22:16:17 2008
@@ -32,3 +32,6 @@
     def set(section, option, value):
         pass
 
+    def setdefault(section, option, value = None):
+        pass
+

_______________________________________________
Kernel-svn-changes mailing list
Kernel-svn-changes@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes

Reply via email to