Sets module deprecated warning

python

Solution

Stop using the `sets` module, or switch to an older version of python where it's not deprecated.

According to pep-004, `sets` is deprecated as of v2.6, replaced by the built-in `set` and `frozenset` types.

Problem

When I run my python script I get the following warning ``` DeprecationWarning: the sets module is deprecated ``` How do I fix this?

Original source