Premiere version : mise en route du suivi.
[auf_roundup.git] / build / lib / roundup / anypy / sets_.py
CommitLineData
c638d827
CR
1"""
2anypy.sets_: sets compatibility module
3
4uses the built-in type 'set' if available, and thus avoids
5deprecation warnings. Simple usage:
6
7Change all
8 from sets import Set
9to
10 from roundup.anypy.sets_ import set
11
12and use 'set' instead of 'Set'.
13To avoid unnecessary imports, you can:
14
15 try:
16 set
17 except NameError:
18 from roundup.anypy.sets_ import set
19
20see:
21http://docs.python.org/library/sets.html#comparison-to-the-built-in-set-types
22
23"""
24
25try:
26 set = set # built-in since Python 2.4
27except NameError, TypeError:
28 from sets import Set as set # deprecated as of Python 2.6
29
30# vim: ts=8 sts=4 sw=4 si et