Revision: 6194
http://jython.svn.sourceforge.net/jython/?rev=6194&view=rev
Author: pjenvey
Date: 2009-04-10 01:09:14 +0000 (Fri, 10 Apr 2009)
Log Message:
-----------
remove 2.3 workarounds
Modified Paths:
--------------
trunk/jython/Lib/test/test_descr.py
Modified: trunk/jython/Lib/test/test_descr.py
===================================================================
--- trunk/jython/Lib/test/test_descr.py 2009-04-09 01:26:22 UTC (rev 6193)
+++ trunk/jython/Lib/test/test_descr.py 2009-04-10 01:09:14 UTC (rev 6194)
@@ -697,15 +697,13 @@
class _instance(object):
pass
class M2(object):
- # XXX: Jython 2.3
- #@staticmethod
+ @staticmethod
def __new__(cls, name, bases, dict):
self = object.__new__(cls)
self.name = name
self.bases = bases
self.dict = dict
return self
- __new__ = staticmethod(__new__)
def __call__(self):
it = _instance()
# Early binding of methods
@@ -2196,11 +2194,9 @@
aProp = property(lambda self: "foo")
class Sub(Base):
- # XXX: Jython 2.3
- #@classmethod
+ @classmethod
def test(klass):
return super(Sub,klass).aProp
- test = classmethod(test)
veris(Sub.test(), Base.aProp)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|