summaryrefslogtreecommitdiff
path: root/pyasn1/type/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/type/base.py')
-rw-r--r--pyasn1/type/base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyasn1/type/base.py b/pyasn1/type/base.py
index 78d316f..600ae98 100644
--- a/pyasn1/type/base.py
+++ b/pyasn1/type/base.py
@@ -140,6 +140,9 @@ class AbstractSimpleAsn1Item(Asn1ItemBase):
# XXX Compatibility stub
def prettyPrinter(self, scope=0): return self.prettyPrint(scope)
+ def prettyPrintType(self, scope=0):
+ return '%s -> %s' % (self.getTagSet(), self.__class__.__name__)
+
#
# Constructed types:
# * There are five of them: Sequence, SequenceOf/SetOf, Set and Choice