summaryrefslogtreecommitdiff
path: root/pyasn1
diff options
context:
space:
mode:
authorelie <elie>2013-12-08 09:51:48 +0000
committerelie <elie>2013-12-08 09:51:48 +0000
commit9ecb9720b1ba26bce16bf71ab0d3cabf332f6a1e (patch)
tree92afaa90f452066506dccc3fc1ccc66902f9d38e /pyasn1
parent1740bb6976086f79e5731a16d8cd33983ac5fc9e (diff)
downloadpyasn1-9ecb9720b1ba26bce16bf71ab0d3cabf332f6a1e.tar.gz
ObjectIdentifier.__repr__() fixed
Diffstat (limited to 'pyasn1')
-rw-r--r--pyasn1/type/univ.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py
index 594a308..1963c9a 100644
--- a/pyasn1/type/univ.py
+++ b/pyasn1/type/univ.py
@@ -490,7 +490,9 @@ class ObjectIdentifier(base.AbstractSimpleAsn1Item):
return self._value[i]
def __str__(self): return self.prettyPrint()
-
+ def __repr__(self):
+ return '%s(%r)' % (self.__class__.__name__, self.prettyPrint())
+
def index(self, suboid): return self._value.index(suboid)
def isPrefixOf(self, value):