(app)
return dict([strip_prefix(i) for i in items if i[0].startswith(prefix)])
Conveniently get the social configuration for the specified
    application without the annoying 'SOCIAL_' prefix.

    :param app: The application to inspect
Conveniently get the social configuration for the specified
    application without the annoying 'SOCIAL_' prefix.
Conveniently get the social configuration for the specified application without the annoying SOCIAL_ prefix .
def get_config(app):
    """Conveniently get the social configuration for the specified
    application without the annoying 'SOCIAL_' prefix.

    :param app: The application to inspect
    """
    items = app.config.items()
    prefix = 'SOCIAL_'

    def strip_prefix(tup):
        return (tup[0].replace(prefix, ''), tup[1])

    return dict([strip_prefix(i) for i in items if i[0].startswith(prefix)])
def get_config ( app ) : items = app . config . items ( ) prefix = 'SOCIAL_' def strip_prefix ( tup ) : return ( tup [ 0 ] . replace ( prefix , '' ) , tup [ 1 ] ) return dict ( [ strip_prefix ( i ) for i in items if i [ 0 ] . startswith ( prefix ) ] )