r122 - branches/rewrite/src

Otavio Salvador partial-mirror-devel@lists.alioth.debian.org
Thu, 01 Jul 2004 20:53:15 -0600


Author: otavio
Date: Thu Jul  1 20:53:15 2004
New Revision: 122

Modified:
   branches/rewrite/src/Config.py
Log:
Fixed some missing parentesses (is right spelled it?).

Modified: branches/rewrite/src/Config.py
==============================================================================
--- branches/rewrite/src/Config.py	(original)
+++ branches/rewrite/src/Config.py	Thu Jul  1 20:53:15 2004
@@ -54,7 +54,7 @@
         self['default'] = {}
         for item, value in conf.items(DEFAULTSECT):
             if item not in required_in_default:
-                error.msg("ERROR: [%s] is not allowed in default section of configuration file." % item)
+                error.msg("ERROR: [%s] is not allowed in default section of configuration file." % (item))
                 exit(1)
             self['default'][item] = value
 	    
@@ -62,7 +62,8 @@
 	    self[section] = {}
 	    for item, value in conf.items(section):
 		if item not in allowed_in_backend:
-		    error.msg("ERROR: [%s] is not allowed in a backend section of a config file (it was found in [%s])." % (item, section))
+		    error.msg("ERROR: [%s] is not allowed in a backend section of a config file (it was found in [%s])."
+                              % (item, section))
 		    exit(1)
 		self[section][item] = value
 		    
@@ -70,7 +71,7 @@
 	# get a config value for a certain section.  if it's not specified,
 	# fall back to DEFAULT
 	if not self.has_key(section):
-	    error.msg("ERROR: no config section called [%s]." % section)
+	    error.msg("ERROR: no config section called [%s]." % (section))
 	    exit(1)
 	if self[section].has_key(key):
 	    return self[section][key]