From: Evan Broder Date: Tue, 17 Mar 2009 23:17:53 +0000 (-0400) Subject: Give PTEntry a helpful __repr__ method. X-Git-Tag: 0.1.0~49 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/commitdiff_plain/7ffcd7349df51917ed0465d73968131382023d86 Give PTEntry a helpful __repr__ method. Signed-off-by: Evan Broder --- 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