X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/blobdiff_plain/b645c548fb484dcd7ea2b37b9bd14f7babc0232d..517db0ad0d5ccda2ea2a0694d5721d6904fbeba7:/afs/_pts.pyx?ds=sidebyside diff --git a/afs/_pts.pyx b/afs/_pts.pyx index 05d0877..4a134fc 100644 --- a/afs/_pts.pyx +++ b/afs/_pts.pyx @@ -80,7 +80,10 @@ cdef class PTEntry: cdef public object name def __repr__(self): - return '' % self.id + if self.name != '': + return '' % self.name + else: + return '' % self.id cdef int _ptentry_from_checkentry(PTEntry p_entry, prcheckentry c_entry) except -1: if p_entry is None: