[pypy-svn] r36530 - in pypy/dist/pypy/translator/jvm: . test

niko at codespeak.net niko at codespeak.net
Thu Jan 11 20:00:08 CET 2007


Author: niko
Date: Thu Jan 11 20:00:06 2007
New Revision: 36530

Modified:
   pypy/dist/pypy/translator/jvm/methods.py
   pypy/dist/pypy/translator/jvm/test/runtest.py
Log:
remove debugging information from StructTuple to fix a few tests...

Modified: pypy/dist/pypy/translator/jvm/methods.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/methods.py	(original)
+++ pypy/dist/pypy/translator/jvm/methods.py	Thu Jan 11 20:00:06 2007
@@ -88,9 +88,7 @@
                 return
 
         # Start the dump
-        genprint("StructTuple(")
-        genprint("'" + self.clsobj.name + "', ")
-        genprint("(")
+        genprint("StructTuple((")
 
         numfields = len(self.OOCLASS._fields)
         for i in range(numfields):

Modified: pypy/dist/pypy/translator/jvm/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/runtest.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/runtest.py	Thu Jan 11 20:00:06 2007
@@ -16,8 +16,6 @@
 FLOAT_PRECISION = 8
 
 class StructTuple(tuple):
-    def __init__(self, class_name, value):
-        tuple.__init__(self, value)
     def __getattr__(self, name):
         if name.startswith('item'):
             i = int(name[len('item'):])



More information about the Pypy-commit mailing list