X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/blobdiff_plain/308ef708cf01eb727827da34a3f56bfb2f0538cf..bd18e95f388ef4e4963ecf0773d5d37f7140ecae:/afs/_pts.pyx diff --git a/afs/_pts.pyx b/afs/_pts.pyx index 4a40bd0..bef7139 100644 --- a/afs/_pts.pyx +++ b/afs/_pts.pyx @@ -70,7 +70,6 @@ cdef import from "afs/ptuser.h": cdef import from "afs/pterror.h": enum: PRNOENT - PRTOOMANY cdef class PTEntry: cdef public afs_int32 flags @@ -218,7 +217,7 @@ cdef class PTS: name if it's a string, or otherwise just converting it to an integer. """ - if isinstance(ident, (str, unicode)): + if isinstance(ident, basestring): return self._NameToId(ident) else: return int(ident) @@ -370,8 +369,6 @@ cdef class PTS: members.append(alist.prlist_val[i]) free(alist.prlist_val) - if over: - code = PRTOOMANY pyafs_error(code) return members @@ -397,8 +394,6 @@ cdef class PTS: owned.append(alist.prlist_val[i]) free(alist.prlist_val) - if over: - code = PRTOOMANY pyafs_error(code) return owned