Module l.functions

Part of lib View Source

Contains some helper functions
Function loadProperties Loads data from a file into a dict
Function loadList loads data from a file into a list
def loadProperties(propertiesFile, ambiguous=False): (source)
Loads data from a file into a dict

The data in the file should have the format:

   key=value

If the file doesn't exist, it will be created. If no filename is given an empty dict is returned
ParameterspropertiesFileThe file to deal with (type: string )
Returns (type: dict )

def loadList(listFile): (source)
loads data from a file into a list

This function loads simply each line of the file into a list. If the filename is empty, a empty list is returned. If the file given doesn't exist, it will be created.
ParameterslistFilethe file to deal with (type: string )
Returns (type: list )

API Documentation for OtfBot - the friendly Bot, generated by pydoctor at 2010-01-04 01:40:56.