diff options
author | elie <elie> | 2013-12-08 09:51:48 +0000 |
---|---|---|
committer | elie <elie> | 2013-12-08 09:51:48 +0000 |
commit | 9ecb9720b1ba26bce16bf71ab0d3cabf332f6a1e (patch) | |
tree | 92afaa90f452066506dccc3fc1ccc66902f9d38e /pyasn1 | |
parent | 1740bb6976086f79e5731a16d8cd33983ac5fc9e (diff) | |
download | pyasn1-9ecb9720b1ba26bce16bf71ab0d3cabf332f6a1e.tar.gz |
ObjectIdentifier.__repr__() fixed
Diffstat (limited to 'pyasn1')
-rw-r--r-- | pyasn1/type/univ.py | 4 |
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): |