Allura/allura/lib/helpers.py
def config_with_prefix(d, prefix):
    '''Return a subdictionary keys with a given prefix,
    with the prefix stripped
    '''
    plen = len(prefix)
    return dict((k[plen:], v) for k, v in d.iteritems()
                if k.startswith(prefix))
Return a subdictionary keys with a given prefix,
    with the prefix stripped
    
Return a subdictionary keys with a given prefix,
with the prefix stripped
Return a subdictionary keys with a given prefix with the prefix stripped
def config_with_prefix(d, prefix):
    plen = len(prefix)
    return dict((k[plen:], v) for k, v in d.iteritems()
                if k.startswith(prefix))
def config_with_prefix ( d , prefix ) : plen = len ( prefix ) return dict ( ( k [ plen : ] , v ) for k , v in d . iteritems ( ) if k . startswith ( prefix ) )
Return a subdictionary keys with a given prefix,
with the prefix stripped
Return a subdictionary keys with a given prefix with the prefix stripped
'''Return a subdictionary keys with a given prefix,
    with the prefix stripped
    '''
d
prefix