Commits

Maciej Fijalkowski  committed 7a41ab3

a missing str

  • Participants
  • Parent commits b3204d2
  • Branches ffi-backend

Comments (0)

Files changed (1)

File lib_pypy/disassembler.py

         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)