Skip to content

Commit 2e2c8d8

Browse files
committed
Display OID in dotted form
1 parent f0a867c commit 2e2c8d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gssapi/raw/oids.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ cdef class OID:
8080
return decoded
8181

8282
def __repr__(self):
83-
return "<OID {0}>".format(self._decode_asn1ber())
83+
dotted_oid = '.'.join(str(x) for x in self._decode_asn1ber())
84+
return "<OID {0}>".format(dotted_oid)
8485

8586
def __hash__(self):
8687
return hash(self.__bytes__())

0 commit comments

Comments
 (0)