Ticket #6297 task closed fixed
Remove usage of twisted.python.compat.set and frozenset
| Reported by: | thijs | Owned by: | tom.prince |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | core | Keywords: | easy |
| Cc: | thijs | Branch: |
branches/remove-set-frozenset-6297
(diff, github, buildbot, log) |
| Author: | tomprince | Launchpad Bug: |
Description (last modified by thijs) (diff)
set and frozenset builtins were introduced in python2.4 and the sets module deprecated since python2.6. This makes compat.set and compat.frozenset redundant and the following imports can be removed:
./twisted/trial/runner.py:26:from twisted.python.compat import set ./twisted/trial/reporter.py:21:from twisted.python.compat import set ./twisted/trial/test/test_script.py:13:from twisted.python.compat import set ./twisted/scripts/trial.py:15:from twisted.python.compat import set ./twisted/mail/relaymanager.py:33:from twisted.python.compat import set ./twisted/mail/maildir.py:21:from twisted.python.compat import set ./twisted/web/_newclient.py:36:from twisted.python.compat import set ./twisted/web/test/test_wsgi.py:17:from twisted.python.compat import set ./twisted/web/test/test_static.py:13:from twisted.python.compat import set ./twisted/web/client.py:39:from twisted.python.compat import set ./twisted/protocols/amp.py:185:from twisted.python.compat import set ./twisted/names/test/test_client.py:12:from twisted.python.compat import set ./twisted/python/test/test_zipstream.py:12:from twisted.python.compat import set ./twisted/python/test/test_fakepwd.py:23:from twisted.python.compat import set ./twisted/internet/posixbase.py:18:from twisted.python.compat import set, _PY3 ./twisted/internet/base.py:20:from twisted.python.compat import set ./twisted/internet/_glibbase.py:23:from twisted.python.compat import set ./twisted/internet/test/test_posixbase.py:10:from twisted.python.compat import set, _PY3 ./twisted/internet/test/test_process.py:14:from twisted.python.compat import set ./twisted/internet/iocpreactor/reactor.py:35:from twisted.python.compat import set ./twisted/conch/test/test_openssh_compat.py:12:from twisted.python.compat import set ./twisted/conch/test/test_tap.py:27:from twisted.python.compat import set ./twisted/test/test_compat.py:15:from twisted.python.compat import set, frozenset, reduce, execfile, _PY3 ./twisted/test/test_process.py:31:from twisted.python.compat import set ./twisted/test/test_paths.py:14:from twisted.python.compat import set, _PY3 ./twisted/test/test_task.py:10:from twisted.python.compat import set ./twisted/words/protocols/irc.py:44:from twisted.python.compat import set
The compat versions could also be deprecated if deemed necessary.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

