From 7ffcd7349df51917ed0465d73968131382023d86 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Tue, 17 Mar 2009 19:17:53 -0400 Subject: [PATCH] Give PTEntry a helpful __repr__ method. Signed-off-by: Evan Broder --- afs/_pts.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/afs/_pts.pyx b/afs/_pts.pyx index ba3da9f..b7424de 100644 --- 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 '' % self.id + cdef int _ptentry_from_checkentry(PTEntry p_entry, prcheckentry c_entry) except -1: if p_entry is None: raise TypeError -- 1.7.9.5