src/reportlab/lib/testutils.py
changeset 4302 f3ff56a22b2e
parent 4288 320d4d0667cf
child 4330 617ffa6bbdc8
equal deleted inserted replaced
4301:6fc822233763 4302:f3ff56a22b2e
   134 
   134 
   135 # Still experimental class extending ConfigParser's behaviour.
   135 # Still experimental class extending ConfigParser's behaviour.
   136 class ExtConfigParser(ConfigParser):
   136 class ExtConfigParser(ConfigParser):
   137     "A slightly extended version to return lists of strings."
   137     "A slightly extended version to return lists of strings."
   138 
   138 
   139     pat = re.compile('\s*\[.*\]\s*')
   139     pat = re.compile(r'\s*\[.*\]\s*')
   140 
   140 
   141     def getstringlist(self, section, option):
   141     def getstringlist(self, section, option):
   142         "Coerce option to a list of strings or return unchanged if that fails."
   142         "Coerce option to a list of strings or return unchanged if that fails."
   143 
   143 
   144         value = ConfigParser.get(self, section, option)
   144         value = ConfigParser.get(self, section, option)