diff options
author | Rob Austein <sra@hactrn.net> | 2009-05-11 06:37:32 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-05-11 06:37:32 +0000 |
commit | a780a7809f44fdd4d088f81f3f8b97a055fbc9da (patch) | |
tree | ae1da6644a3a90b5d3fcfa123c64146d3854b6d2 /rpkid/rpki/config.py | |
parent | 125c61b4f7040e1206fa3eb5b627147bbbd5645b (diff) |
Cosmetic doc changes.
svn path=/rpkid/irbe-setup.py; revision=2424
Diffstat (limited to 'rpkid/rpki/config.py')
-rw-r--r-- | rpkid/rpki/config.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/rpkid/rpki/config.py b/rpkid/rpki/config.py index 72bbc589..c233179b 100644 --- a/rpkid/rpki/config.py +++ b/rpkid/rpki/config.py @@ -1,5 +1,6 @@ -"""Configuration file parsing utilities, layered on top of stock -Python ConfigParser module. +""" +Configuration file parsing utilities, layered on top of stock Python +ConfigParser module. $Id$ @@ -23,14 +24,17 @@ import ConfigParser class parser(ConfigParser.RawConfigParser): def __init__(self, filename = None, section = None): - """Initialize this parser.""" + """ + Initialize this parser. + """ ConfigParser.RawConfigParser.__init__(self) if filename: self.read(filename) self.default_section = section def multiget(self, option, section = None): - """Parse OpenSSL-style foo.0, foo.1, ... subscripted options. + """ + Parse OpenSSL-style foo.0, foo.1, ... subscripted options. Returns a list of values matching the specified option name. """ @@ -47,7 +51,9 @@ class parser(ConfigParser.RawConfigParser): return [match[1] for match in matches] def get(self, option, default = None, section = None): - """Get an option, perhaps with a default value.""" + """ + Get an option, perhaps with a default value. + """ if section is None: section = self.default_section if default is None or self.has_option(section, option): |