projects
/
invirt/packages/python-afs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Give PTEntry a helpful __repr__ method.
[invirt/packages/python-afs.git]
/
afs
/
_pts.pyx
diff --git
a/afs/_pts.pyx
b/afs/_pts.pyx
index
ba3da9f
..
b7424de
100644
(file)
--- a/
afs/_pts.pyx
+++ b/
afs/_pts.pyx
@@
-76,6
+76,9
@@
cdef class PTEntry:
cdef public afs_int32 nusers
cdef public afs_int32 count
+ def __repr__(self):
+ return '<PTEntry: %s>' % self.id
+
cdef int _ptentry_from_checkentry(PTEntry p_entry, prcheckentry c_entry) except -1:
if p_entry is None:
raise TypeError