[pypy-commit] pypy ffi-backend: merge

fijal noreply at buildbot.pypy.org
Tue Jun 26 22:16:57 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: ffi-backend
Changeset: r55854:96660443a663
Date: 2012-06-26 22:15 +0200
http://bitbucket.org/pypy/pypy/changeset/96660443a663/

Log:	merge

diff --git a/lib_pypy/disassembler.py b/lib_pypy/disassembler.py
--- a/lib_pypy/disassembler.py
+++ b/lib_pypy/disassembler.py
@@ -24,6 +24,11 @@
         self.lineno = lineno
         self.line_starts_here = False
 
+    def __str__(self):
+        if self.arg is None:
+            return "%s" % (self.__class__.__name__,)
+        return "%s (%s)" % (self.__class__.__name__, self.arg)
+
     def __repr__(self):
         if self.arg is None:
             return "<%s at %d>" % (self.__class__.__name__, self.pos)


More information about the pypy-commit mailing list