summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2011-12-06 21:12:36 +0000
committerelie <elie>2011-12-06 21:12:36 +0000
commitef6daaa6380a11b82108c43c1599902e56267de1 (patch)
treeba7a141cc2a3b3c78e7b419a248f7ab61c6d31b0
parent7a2c8cf943a275e7df1084feffc5f89eaa9ccb25 (diff)
downloadpyasn1-release_0_1_2_tag.tar.gz
ObjectIdentifier.prettyOut() improvedrelease_0_1_2_tag
-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')