Skip to content

Commit 75b6127

Browse files
committed
Remove anypy.sets_
The anypy.sets_ package module is no longer used in the roundup codebase because python v2.4 is no longer supported. The anypy VERSION has been bumped to 0.3 to reflect this removal, but the version has probably never changed when other features were added in the past so this bump may be pointless.
1 parent 4e318a9 commit 75b6127

File tree

9 files changed

+1
-66
lines changed

9 files changed

+1
-66
lines changed

2to3-done.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ NOTHING DONE
147147
./roundup/__init__.py
148148
./roundup/actions.py
149149
./roundup/anypy/__init__.py
150-
./roundup/anypy/sets_.py
151150
./roundup/backends/blobfiles.py
152151
./roundup/backends/indexer_xapian.py
153152
./roundup/backends/tsearch2_setup.py

roundup/anypy/README.txt

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,4 @@ in this package provide the functionalities which are used by Roundup
1111

1212
Use the modules in this package to preserve Roundup's compatibility.
1313

14-
sets_: sets compatibility module
15-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16-
17-
Since Python 2.4, there is a built-in type 'set'; therefore, the 'sets'
18-
module is deprecated since version 2.6. As far as Roundup is concerned,
19-
the usage is identical; see
20-
http://docs.python.org/library/sets.html#comparison-to-the-built-in-set-types
21-
22-
Uses the built-in type 'set' if available, and thus avoids
23-
deprecation warnings. Simple usage:
24-
25-
Change all::
26-
from sets import Set
27-
28-
to::
29-
from roundup.anypy.sets_ import set
30-
31-
and use 'set' instead of 'Set' (or sets.Set, respectively).
32-
To avoid unnecessary imports, you can::
33-
34-
try:
35-
set
36-
except NameError:
37-
from roundup.anypy.sets_ import set
38-
3914
# vim: si

roundup/anypy/TODO.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
Python compatiblity TODO
22
~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
Remove sets_ included for Python 2.3 compatibility.
5-
64
Remove support for Python versions < 2.5. As they are not supported anymore.

roundup/anypy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"""
44
VERSION = '.'.join(map(str,
55
(0,
6-
2, # set_
6+
3,
77
)))

roundup/anypy/sets_.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

share/roundup/templates/devel/detectors/nosyreaction.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from roundup.anypy.sets_ import set
2-
31
from roundup import roundupdb, hyperdb
42

53
def nosyreaction(db, cl, nodeid, oldvalues):

share/roundup/templates/responsive/detectors/nosyreaction.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from roundup.anypy.sets_ import set
2-
31
from roundup import roundupdb, hyperdb
42

53
def nosyreaction(db, cl, nodeid, oldvalues):

test/test_mailgw.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \
3232
parseContent, IgnoreLoop, IgnoreBulk, MailUsageError, MailUsageHelp
3333
from roundup import init, instance, password, __version__
34-
from roundup.anypy.sets_ import set
3534

3635
#import db_test_base
3736
import memorydb

website/issues/detectors/nosyreaction.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from roundup.anypy.sets_ import set
2-
31
from roundup import roundupdb, hyperdb
42

53
def nosyreaction(db, cl, nodeid, oldvalues):

0 commit comments

Comments
 (0)