summaryrefslogtreecommitdiff
path: root/pyasn1/type/univ.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/type/univ.py')
-rw-r--r--pyasn1/type/univ.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py
index 6b140a3..65ce604 100644
--- a/pyasn1/type/univ.py
+++ b/pyasn1/type/univ.py
@@ -496,14 +496,8 @@ class ObjectIdentifier(base.AbstractSimpleAsn1Item):
return value
- def prettyOut(self, value):
- r = []
- for subOid in value:
- r.append(str(subOid))
- if r[-1] and r[-1][-1] == 'L':
- r[-1][-1] = r[-1][:-1]
- return '.'.join(r)
-
+ def prettyOut(self, value): return '.'.join([ str(x) for x in value ])
+
class Real(base.AbstractSimpleAsn1Item):
try:
_plusInf = float('inf')