[kernel] r9193 - people/waldi/dkt/lib/dkt/config

Bastian Blank waldi at alioth.debian.org
Tue Jul 24 22:40:38 UTC 2007


Author: waldi
Date: Tue Jul 24 22:40:38 2007
New Revision: 9193

Log:
lib/dkt/config/base.py, lib/dkt/config/interfaces.py: Revert name change.


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	Tue Jul 24 22:40:38 2007
@@ -24,7 +24,7 @@
             return default
         return o
 
-    def getSection(self, section, default = _marker):
+    def get_section(self, section, default = _marker):
         s = self._data.get(section, _marker)
         if s == _marker:
             if default == _marker:
@@ -32,13 +32,13 @@
             return default
         return s.copy()
 
-    def iterOptions(self, section):
+    def iteroptions(self, section):
         s = self._data.get(section, _marker)
         if s == _marker:
             raise KeyError
         return s.iterkeys()
 
-    def iterSections(self):
+    def itersections(self):
         return self._data.iterkeys()
 
     def options(self, section):
@@ -53,7 +53,7 @@
 class MutableConfig(Config):
     implements(interfaces.IMutableConfig)
 
-    def addSection(self, section):
+    def add_section(self, section):
         s = self._data.get(section, _marker)
         if s == _marker:
             self._data[section] = {}
@@ -61,7 +61,7 @@
     def delete(self, section, option):
         del self._data[section][option]
 
-    def deleteSection(self, section):
+    def delete_section(self, section):
         del self._data[section]
 
     def set(self, section, 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	Tue Jul 24 22:40:38 2007
@@ -4,13 +4,13 @@
     def get(section, option, default = None):
         pass
 
-    def getSection(section, default = None):
+    def get_section(section, default = None):
         pass
 
-    def iterOptions(section):
+    def iteroptions(section):
         pass
 
-    def iterSections():
+    def itersections():
         pass
 
     def options(section):
@@ -20,13 +20,13 @@
         pass
 
 class IMutableConfig(IConfig):
-    def addSection(section):
+    def add_section(section):
         pass
 
     def delete(section, option):
         pass
 
-    def deleteSection(section):
+    def delete_section(section):
         pass
 
     def set(section, option, value):



More information about the Kernel-svn-changes mailing list