def _ask_snippets(snippets):
 display = [(as_unicode('%i: %s (%s)') % ((i + 1), escape(s.description, '\\'), escape(s.location, '\\'))) for (i, s) in enumerate(snippets)]
 return _ask_user(snippets, display)

def _ask_snippets ( snippets ) : display = [ ( as_unicode ( '%i: %s (%s)' ) % ( ( i + 1 ) , escape ( s . description , '\\' ) , escape ( s . location , '\\' ) ) ) for ( i , s ) in enumerate ( snippets ) ] return _ask_user ( snippets , display )
given a list of snippets .