Ticket #5385
enhancement
closed
fixed
Get rid of references and code specific to Python 2.2
| Reported by: |
jesstess |
Owned by: |
exarkun
|
|
Priority:
|
normal
|
Milestone:
|
|
|
Component:
|
core
|
Keywords:
|
easy
|
|
Cc:
|
jesstess, moijes12, thijs
|
Branch:
|
branches/python22-5385-4
|
|
Author:
|
exarkun, moijes12, jesstess
|
Launchpad Bug:
|
|
Some of these comments can just get removed. Some might require removal of code as well.
twisted/internet/error.py: # only works in 2.2
twisted/python/dist.py: Python 2.2's distutils. Pretty similar arguments to getDataFiles,
twisted/python/filepath.py: # new in 2.2.0
twisted/python/reflect.py: This is for Python 2.2 and up.
twisted/python/reflect.py: This is a 2.2-only alternative to the Accessor mixin - just set in your
twisted/python/reflect.py: """A mixin class for Python 2.2 that uses AccessorType.
twisted/python/reflect.py: This provides compatability with the pre-2.2 Accessor mixin, up
twisted/test/test_compat.py: # without replacing isinstance on 2.2 as well :(
doc/core/development/policy/coding-standard.xhtml: in Python 2.2 to unify classes and types. All classes added to Twisted
doc/core/howto/pb-copyable.xhtml:that were introduced in Python 2.2 could be useful too. The result might be
doc/web/examples/xmlrpc.py:# This module is standard in Python 2.2, otherwise get it from
doc/web/howto/xmlrpc.xhtml:included with Python 2.2 and later.</p>
Attachments
-
5385-patch.patch
(7.1 KB) - added by moijes12
17 months ago.
-
Modified 1. twisted.internet.error.py : Removed comment 'works only in 2.2' from function getConnectionError 2. twisted.python.filepath.py : Removed comment 'new in 2.2.0' 3. twisted.test.test_compat.py : Modified method testIsinstance of class CompatTestCase.Removed # I'm pretty sure it's impossible to implement this # without replacing isinstance on 2.2 as well :( # self.assert_(isinstance({}, dict)) 4. doc.web.examples : Removed comment # This module is standard in Python 2.2, otherwise get it from # http://www.pythonware.com/products/xmlrpc/ 5. twisted.python.reflect.py : Removed comment 'This provides compatability with the pre-2.2 Accessor mixin, up to a point.' Removed Comment ', or using non-2.1 compatible code' Removed Comment 'This implementation is for Python 2.1.' 6. twisted.python.dist.py : removed comment 'This is necessary for Python 2.2's distutils.' from docstring for function getPackages 7. doc/core/development/policy/coding-standard.xhtml : Removed section on new style classes. 8. doc/core/howto/pb-copyable.xhtml : Removed 'The semi-magical <q>property attributes</q> that were introduced in Python 2.2 could be useful too. The result might be hard to maintain or extend, though.' 9. doc/web/howto/xmlrpc.xhtml : Removed 'that is included with Python 2.2 and later.'
-
patch_5385.patch
(18.8 KB) - added by moijes12
16 months ago.
-
5385_2.patch
(6.1 KB) - added by moijes12
16 months ago.
-
5385_3.patch
(6.5 KB) - added by moijes12
16 months ago.
-
5385_4.patch
(5.5 KB) - added by moijes12
16 months ago.
-
Attaching patch with taking into consideration exarkun's comments.
-
patch_5385.2.patch
(19.2 KB) - added by moijes12
13 months ago.
Change History