c.b.p.i.ConfigFile(object) : class documentation

Part of canonical.buildd.pottery.intltool View In Hierarchy

Represent a config file and return variables defined in it.
Method __init__ Undocumented
Method getVariable Search the file for a variable definition with this name.
Method getFunctionParams Search file for a function call with this name, return parameters.
Method _stripQuotes Strip surrounding quotes from identifier, if present.
def __init__(self, file_or_name):
Undocumented
def _stripQuotes(self, identifier):
Strip surrounding quotes from identifier, if present.
Parametersidentifiera string, possibly surrounded by matching 'single,' "double," or [bracket] quotes.
Returnsidentifier but with the outer pair of matching quotes removed, if they were there.
def getVariable(self, name):
Search the file for a variable definition with this name.
def getFunctionParams(self, name):
Search file for a function call with this name, return parameters.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.