Fix Container's __pretty_str__ to use str instead of repr. This provides more consist...
authorEli Bendersky <eliben@gmail.com>
Sat, 7 Jan 2012 18:44:43 +0000 (20:44 +0200)
committerEli Bendersky <eliben@gmail.com>
Sat, 7 Jan 2012 18:44:43 +0000 (20:44 +0200)
elftools/construct/lib/container.py

index 326ee57475d31fccfc6fa123f0780668420f7257..eb4b738f3a27f23854a399f89e40f7629ad4660d 100644 (file)
@@ -73,7 +73,7 @@ class Container(object):
                 if hasattr(v, "__pretty_str__"):
                     text.append(v.__pretty_str__(nesting + 1, indentation))
                 else:
-                    text.append(repr(v))
+                    text.append(str(v))
                 attrs.append("".join(text))
         if not attrs:
             return "%s()" % (self.__class__.__name__,)