r349 - in branches/rewrite: . src
Otavio Salvador
partial-mirror-devel@lists.alioth.debian.org
Thu, 18 Nov 2004 11:55:21 -0700
Author: otavio
Date: Thu Nov 18 11:55:20 2004
New Revision: 349
Modified:
branches/rewrite/ (props changed)
branches/rewrite/src/Config.py
Log:
r338@nurf: otavio | 2004-11-18T18:47:47.177981Z
Call Exception base class constructor and return None explicit.
Modified: branches/rewrite/src/Config.py
==============================================================================
--- branches/rewrite/src/Config.py (original)
+++ branches/rewrite/src/Config.py Thu Nov 18 11:55:20 2004
@@ -30,6 +30,7 @@
option -- The name of invalid option.
"""
def __init__(self, section, option):
+ Exception.__init__(self)
self.section = section
self.option = option
@@ -43,6 +44,7 @@
option -- The name of invalid option.
"""
def __init__(self, section, option):
+ Exception.__init__(self)
self.section = section
self.option = option
@@ -55,6 +57,7 @@
section -- The wrong section name.
"""
def __init__(self, section):
+ Exception.__init__(self)
self.section = section
class ConfigSection:
@@ -79,6 +82,7 @@
variable = allowed_key[left_length:right_length]
match = item[left_length:len(item)-(len(allowed_key)-right_length)]
return allowed_key, variable, match
+ return None
def __castOption(self, option, value):
if option not in self._options_with_type: