[pypy-svn] r18033 - pypy/dist/pypy/translator/c

pedronis at codespeak.net pedronis at codespeak.net
Sat Oct 1 02:27:00 CEST 2005


Author: pedronis
Date: Sat Oct  1 02:26:59 2005
New Revision: 18033

Modified:
   pypy/dist/pypy/translator/c/pyobj.py
Log:
more info in warnings



Modified: pypy/dist/pypy/translator/c/pyobj.py
==============================================================================
--- pypy/dist/pypy/translator/c/pyobj.py	(original)
+++ pypy/dist/pypy/translator/c/pyobj.py	Sat Oct  1 02:26:59 2005
@@ -312,14 +312,14 @@
                     # XXX some __NAMES__ are important... nicer solution sought
                     #raise Exception, "unexpected name %r in class %s"%(key, cls)
                 if isinstance(value, staticmethod) and value.__get__(1) not in self.translator.flowgraphs and self.translator.frozen:
-                    log.WARNING(str(value))
+                    log.WARNING("skipped staticmethod: %s" % value)
                     continue
                 if isinstance(value, classmethod):
                     doc = value.__get__(cls).__doc__
                     if doc and doc.lstrip().startswith("NOT_RPYTHON"):
                         continue
                 if isinstance(value, FunctionType) and value not in self.translator.flowgraphs and self.translator.frozen:
-                    log.WARNING(str(value))
+                    log.WARNING("skipped class function: %s" % value)
                     continue
                 if key in ignore:
                     continue



More information about the Pypy-commit mailing list