#NEWLINE# def get_config( app ) : #NEWLINE# #INDENT# "Conveniently get the social configuration for the specified\n    application without the annoying 'SOCIAL_' prefix.\n\n    :param app: The application to inspect\n    " #NEWLINE# items = app . config . items ( ) #NEWLINE# prefix = 'SOCIAL_' #NEWLINE# def strip_prefix( tup ) : #NEWLINE# #INDENT# return ( tup [ 0 ] . replace ( prefix , '' ) , tup [ 1 ] ) #NEWLINE# #UNINDENT# return dict ( [ strip_prefix ( i ) for i in items if i [ 0 ] . startswith ( prefix ) ] )