Ticket #5387 enhancement new
Get rid of references and code specific to Python 2.4
Description (last modified by thijs) (diff)
Once we drop support for 2.4 in ticket 4962 and close #5385 (py2.2) and #5386 (py2.3). Some of these comments can just get removed. Some might require removal of code as well.
twisted/conch/test/test_filetransfer.py: # In Python 2.4, the bad import has already been cleaned up for us.
twisted/internet/defer.py: WARNING: this function will not work in Python 2.4 and earlier!
twisted/internet/defer.py: generators. If you need to be compatible with Python 2.4 or before, use
twisted/internet/unix.py: # Abstract namespace sockets aren't well supported on Python 2.4.
twisted/python/dist.py: older versions (currently the only supported older version is 2.4), checks
twisted/python/filepath.py: Provide random data in versions of Python prior to 2.4. This is an
twisted/python/filepath.py: # Under Python 2.4 on Windows, WindowsError only has an errno
twisted/python/filepath.py: # in Python 2.4 will result in a Windows error code of
twisted/python/reflect.py: if (execName is None or # python 2.4+, post-cleanup
twisted/python/test/test_dist.py: Tests for L{_checkCPython} when used on a Python 2.4-like platform, when
twisted/python/test/test_zipstream.py: # In python 2.4 and earlier, consistency between the directory and the
twisted/python/util.py: This is mostly necessary in Python 2.4 which implements L{id} to sometimes
twisted/test/test_defgen.py:## syntax error in Python 2.4 and before.
twisted/trial/runner.py: # objects do not have nice looking string formats on Python 2.4.
twisted/trial/test/mockdoctest.py:# to test trial's doctest support with python2.4
twisted/trial/unittest.py: # in __call__, whereas 2.4 defines the code in run.
twisted/trial/util.py: else: # use hotshot, profile is broken in 2.4
twisted/trial/util.py: # Python 2.4 has fixed this. Yay!
twisted/web/client.py: # Python 2.4 doesn't have these symbolic constants
twisted/web/test/test_xmlrpc.py: Tests for the C{useDateTime} flag on Python 2.4.
twisted/web/xmlrpc.py:# On Python 2.4 and earlier, DateTime.decode returns unicode.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

