r128 - branches/rewrite/src

Otavio Salvador partial-mirror-devel@lists.alioth.debian.org
Thu, 01 Jul 2004 22:29:24 -0600


Author: otavio
Date: Thu Jul  1 22:29:23 2004
New Revision: 128

Modified:
   branches/rewrite/src/Config.py
Log:
Reformat the code. Minor issues, but ...

Modified: branches/rewrite/src/Config.py
==============================================================================
--- branches/rewrite/src/Config.py	(original)
+++ branches/rewrite/src/Config.py	Thu Jul  1 22:29:23 2004
@@ -64,11 +64,11 @@
 	'name',
 	'resolve_deps_using',
         ]
-    
+
     def __init__(self, filename):
         conf = ConfigParser()
         conf.read(filename)
-	
+
 	# Read the global section.
         self['GLOBAL'] = {}
         for item, value in conf.items('GLOBAL'):
@@ -96,7 +96,7 @@
 			    % (item, section))
                         raise InvalidOption(section, item)
 		self[section][item] = value
-		    
+
     def getOption(self, key, section='GLOBAL'):
 	# get a config value for a certain section.  if it's not
 	# specified, fall back to GLOBAL
@@ -109,7 +109,7 @@
 	    error("[%s] is not present in section [%s] or the global section of config file." % (key, section))
 	    exit(1)
 	return self['GLOBAL'][key]
-	
+
     def dump(self):
         for section, options in self.items():
             print section