src/tests/sql_regression/upgrade.py
def load_config(filename):
    """
        Load and return configuration from the specified file.
    """
    parser = configparser.ConfigParser()
    if not parser.read(filename):
        raise Exception('Could not load config from %s' % filename)
    config = parser._sections
    for key in config['db'].keys():
        k = 'DB%s' % key.upper()
        if os.environ.get(k):
            config['db'][key] = os.environ[k]
    return config

        Load and return configuration from the specified file.
    
Load and return configuration from the specified file.
Load and return configuration from the specified file .
def load_config(filename):
    parser = configparser.ConfigParser()
    if not parser.read(filename):
        raise Exception('Could not load config from %s' % filename)
    config = parser._sections
    for key in config['db'].keys():
        k = 'DB%s' % key.upper()
        if os.environ.get(k):
            config['db'][key] = os.environ[k]
    return config
def load_config ( filename ) : parser = configparser . ConfigParser ( ) if not parser . read ( filename ) : raise Exception ( 'Could not load config from %s' % filename ) config = parser . _sections for key in config [ 'db' ] . keys ( ) : k = 'DB%s' % key . upper ( ) if os . environ . get ( k ) : config [ 'db' ] [ key ] = os . environ [ k ] return config
Load and return configuration from the specified file.
Load and return configuration from the specified file .
"""
        Load and return configuration from the specified file.
    """
filename