chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7a7aa30
)
catacomb/__init__.py: Print groups properly.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 1 May 2017 00:38:30 +0000
(
01:38
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 4 May 2017 11:06:25 +0000
(12:06 +0100)
catacomb/__init__.py
patch
|
blob
|
blame
|
history
diff --git
a/catacomb/__init__.py
b/catacomb/__init__.py
index c646fe8c2f4ec843706f816a4d6404f1adba8449..bc050be8a40ba99009511e0661fedcdd01b4195b 100644
(file)
--- a/
catacomb/__init__.py
+++ b/
catacomb/__init__.py
@@
-574,6
+574,11
@@
_augment(BinDHInfo, _tmp)
class _tmp:
def __repr__(me):
return '%s(%r)' % (type(me).__name__, me.info)
class _tmp:
def __repr__(me):
return '%s(%r)' % (type(me).__name__, me.info)
+ def _repr_pretty_(me, pp, cyclep):
+ ind = _pp_bgroup_tyname(pp, me)
+ if cyclep: pp.text('...')
+ else: pp.pretty(me.info)
+ pp.end_group(ind, ')')
_augment(Group, _tmp)
class _tmp:
_augment(Group, _tmp)
class _tmp: