Commits

Robert Brewer committed bc1f89b

Fix for #427 (Use RawConfigParser instead of ConfigParser).

  • Participants
  • Parent commits 2858abd

Comments (0)

Files changed (1)

cherrypy/config.py

             finally:
                 fp.close()
 
-def dict_from_config_file(configFile):
+def dict_from_config_file(configFile, raw=False, vars=None):
     """Convert an INI file to a dictionary"""
     
     # Parse config file
         if section not in result:
             result[section] = {}
         for option in configParser.options(section):
-            value = configParser.get(section, option)
+            value = configParser.get(section, option, raw, vars)
             try:
                 value = cptools.unrepr(value)
             except Exception, x: