Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 999

Show
Ignore:
Timestamp:
03/03/06 18:27:26
Author:
fumanchu
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/config.py

    r996 r999  
    228228                fp.close() 
    229229 
    230 def dict_from_config_file(configFile): 
     230def dict_from_config_file(configFile, raw=False, vars=None): 
    231231    """Convert an INI file to a dictionary""" 
    232232     
     
    244244            result[section] = {} 
    245245        for option in configParser.options(section): 
    246             value = configParser.get(section, option
     246            value = configParser.get(section, option, raw, vars
    247247            try: 
    248248                value = cptools.unrepr(value) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets