Source code for ConfigValue

 1
[docs] 2class ConfigValue: 3 ''' 4 This class represents a config parameter assigned to a particular value 5 It will also store the comment associated with this parameter 6 '''
[docs] 7 def __init__(self, section, param, value, comment): 8 ''' 9 section = the section the parameter appears in (string) 10 param = the name of the parameter (string) 11 value = the value of the parameter, can be a string or a parsed value (such as a float) 12 comment = a list of the comment lines above this parameter, with the semicolon removed 13 ''' 14 self.section = section 15 self.param = param 16 self.value = value 17 self.comment = comment