We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac0b2a commit 96fb80bCopy full SHA for 96fb80b
gssapi/raw/oids.pyx
@@ -156,9 +156,12 @@ cdef class OID:
156
pos += 1
157
return decoded
158
159
+ @property
160
+ def dotted_form(self):
161
+ return '.'.join(str(x) for x in self._decode_asn1ber())
162
+
163
def __repr__(self):
- dotted_oid = '.'.join(str(x) for x in self._decode_asn1ber())
- return "<OID {0}>".format(dotted_oid)
164
+ return "<OID {0}>".format(self.dotted_form)
165
166
def __hash__(self):
167
return hash(self.__bytes__())
0 commit comments