Python 2.7 prints sets as "set([1, 2])", but Python 3.2 prints them as
"{1, 2}". Avoid having to chose by showing that the result of
reduce_keywords() is a set, and then printing the elements in a list.
"""Reduce a list of keywords to a unique set of stable keywords.
Example usage:
- >>> reduce_keywords(['~amd64', 'x86', '~x86'])
- set(['amd64', 'x86'])
+ >>> kw = reduce_keywords(['~amd64', 'x86', '~x86'])
+ >>> isinstance(kw, set)
+ True
+ >>> sorted(kw)
+ ['amd64', 'x86']
@type keywords: array
@rtype: set