class documentation

class twisted.runner.inetdconf.SimpleConfFile: (source)

Known subclasses: twisted.runner.inetdconf.InetdConf, twisted.runner.inetdconf.ServicesConf

View In Hierarchy

Simple configuration file parser superclass.

Filters out comments and empty lines (which includes lines that only contain comments).

To use this class, override parseLine or parseFields.

Class Variable commentChar Undocumented
Class Variable defaultFilename Undocumented
Method parseFile Parse a configuration file
Method parseLine Override this.
Method parseFields Override this.
commentChar = (source)

Undocumented

(type: str)
def parseFile(self, file=None): (source)

Parse a configuration file

If file is None and self.defaultFilename is set, it will open defaultFilename and use it.

def parseLine(self, line): (source)

Override this.

By default, this will split the line on whitespace and call self.parseFields (catching any errors).

def parseFields(self, *fields): (source)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.