aboutsummaryrefslogtreecommitdiff
path: root/pyasn1/type/char.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/type/char.py')
-rw-r--r--pyasn1/type/char.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/pyasn1/type/char.py b/pyasn1/type/char.py
index 3a29165..8986b70 100644
--- a/pyasn1/type/char.py
+++ b/pyasn1/type/char.py
@@ -123,7 +123,20 @@ class AbstractCharacterString(univ.OctetString):
def asNumbers(self, padding=True):
return tuple(bytes(self))
+ #
+ # See OctetString.prettyPrint() for the explanation
+ #
+
+ def prettyOut(self, value):
+ return value
+
def prettyPrint(self, scope=0):
+ # first see if subclass has its own .prettyOut()
+ value = self.prettyOut(self._value)
+
+ if value is not self._value:
+ return value
+
return AbstractCharacterString.__str__(self)
def __reversed__(self):